Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55d29780 authored by minhyeok's avatar minhyeok
Browse files

Create Settings.Global.Wearable.CLOCKWORK_LOCATION_TIME_ZONE_DETECTION_ENABLED

 - Indicates that user enabled location time zone detection.

Bug: 409871821
Test: presubmit
Flag: com.google.android.clockwork.settings.flags.time_zone_sync_geo
Change-Id: I4d9c88223c380990feb5ed0a24b8c9720cffc76c
parent af2a9e60
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -20234,6 +20234,12 @@ public final class Settings {
            /** @hide */
            public static final int INVALID_AUTO_TIME_ZONE_STATE = 3;
            /** Store user enablement settings for location time zone detection
             * Type: int (0 to disabled, 1 to enabled)
             * @hide */
            public static final String CLOCKWORK_LOCATION_TIME_ZONE_DETECTION_ENABLED =
                    "clockwork_location_time_zone_detection_enabled";
            /**
             * Whether 24 hour time format is enabled on the watch.
             * @hide
+1 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@ public class GlobalSettings {
        Settings.Global.Wearable.SMART_REPLIES_ENABLED,
        Settings.Global.Wearable.CLOCKWORK_AUTO_TIME,
        Settings.Global.Wearable.CLOCKWORK_AUTO_TIME_ZONE,
        Settings.Global.Wearable.CLOCKWORK_LOCATION_TIME_ZONE_DETECTION_ENABLED,
        Settings.Global.Wearable.CLOCKWORK_24HR_TIME,
        Settings.Global.Wearable.CONSISTENT_NOTIFICATION_BLOCKING_ENABLED,
        Settings.Global.Wearable.MUTE_WHEN_OFF_BODY_ENABLED,
+2 −0
Original line number Diff line number Diff line
@@ -253,6 +253,8 @@ public class GlobalSettingsValidators {
                            String.valueOf(Global.Wearable.AUTO_TIME_ZONE_OFF),
                            String.valueOf(Global.Wearable.INVALID_AUTO_TIME_ZONE_STATE)
                        }));
        VALIDATORS.put(Global.Wearable.CLOCKWORK_LOCATION_TIME_ZONE_DETECTION_ENABLED,
                BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.Wearable.CLOCKWORK_24HR_TIME, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.Wearable.AUTO_WIFI, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.Wearable.WIFI_POWER_SAVE, ANY_INTEGER_VALIDATOR);