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

Commit e0f9be71 authored by Adnan Begovic's avatar Adnan Begovic
Browse files

sysui: Observe weather enabled for lockscreen.

Bug: 261757708
Test: manually, unit
Change-Id: I7a7830cb8875d74a447b3ee07105899418a084c4
Merged-In: I7a7830cb8875d74a447b3ee07105899418a084c4
parent 0aafe55e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -11046,6 +11046,13 @@ public final class Settings {
        public static final String EXTRA_AUTOMATIC_POWER_SAVE_MODE =
                "extra_automatic_power_save_mode";
        /**
         * Whether lockscreen weather is enabled.
         *
         * @hide
         */
        public static final String LOCK_SCREEN_WEATHER_ENABLED = "lockscreen_weather_enabled";
        /**
         * These entries are considered common between the personal and the managed profile,
         * since the managed profile doesn't get to change them.
+3 −0
Original line number Diff line number Diff line
@@ -6083,4 +6083,7 @@
    <!-- Whether the lock screen is allowed to run its own live wallpaper,
         different from the home screen wallpaper. -->
    <bool name="config_independentLockscreenLiveWallpaper">false</bool>

    <!-- Whether to show weather on the lock screen by default. -->
    <bool name="config_lockscreenWeatherEnabledByDefault">false</bool>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -4892,4 +4892,7 @@
  <java-symbol type="id" name="language_picker_header" />

  <java-symbol type="dimen" name="status_bar_height_default" />

  <!-- Whether to show weather on the lockscreen by default. -->
  <java-symbol type="bool" name="config_lockscreenWeatherEnabledByDefault" />
</resources>
+2 −1
Original line number Diff line number Diff line
@@ -219,6 +219,7 @@ public class SecureSettings {
        Settings.Secure.ASSIST_LONG_PRESS_HOME_ENABLED,
        Settings.Secure.BLUETOOTH_LE_BROADCAST_PROGRAM_INFO,
        Settings.Secure.BLUETOOTH_LE_BROADCAST_CODE,
        Settings.Secure.BLUETOOTH_LE_BROADCAST_APP_SOURCE_NAME
        Settings.Secure.BLUETOOTH_LE_BROADCAST_APP_SOURCE_NAME,
        Settings.Secure.LOCK_SCREEN_WEATHER_ENABLED
    };
}
+1 −0
Original line number Diff line number Diff line
@@ -352,5 +352,6 @@ public class SecureSettingsValidators {
        VALIDATORS.put(Secure.BLUETOOTH_LE_BROADCAST_PROGRAM_INFO, ANY_STRING_VALIDATOR);
        VALIDATORS.put(Secure.BLUETOOTH_LE_BROADCAST_CODE, ANY_STRING_VALIDATOR);
        VALIDATORS.put(Secure.BLUETOOTH_LE_BROADCAST_APP_SOURCE_NAME, ANY_STRING_VALIDATOR);
        VALIDATORS.put(Secure.LOCK_SCREEN_WEATHER_ENABLED, BOOLEAN_VALIDATOR);
    }
}
Loading