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

Commit bef63baa authored by Aurélien Pomini's avatar Aurélien Pomini
Browse files

Flip the lockscreen live wallpaper flag

Bug: 273443374
Test: atest WallpaperManagerTest
Test: a lot of manual testing over the last months
Change-Id: I171d552ecebd09b3b88bd21e2e33361e93bc8747
parent 94862db1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -853,7 +853,7 @@ public class WallpaperManager {
    private static boolean isLockscreenLiveWallpaperEnabledHelper() {
        if (sGlobals == null) {
            sIsLockscreenLiveWallpaperEnabled = SystemProperties.getBoolean(
                    "persist.wm.debug.lockscreen_live_wallpaper", false);
                    "persist.wm.debug.lockscreen_live_wallpaper", true);
        }
        if (sIsLockscreenLiveWallpaperEnabled == null) {
            try {
+1 −1
Original line number Diff line number Diff line
@@ -522,7 +522,7 @@ object Flags {
    // TODO(b/273443374): Tracking Bug
    @Keep
    @JvmField val LOCKSCREEN_LIVE_WALLPAPER =
        sysPropBooleanFlag(1117, "persist.wm.debug.lockscreen_live_wallpaper", default = false)
        sysPropBooleanFlag(1117, "persist.wm.debug.lockscreen_live_wallpaper", default = true)

    // TODO(b/281648899): Tracking bug
    @Keep
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ class WallpaperDataParser {
        mImageWallpaper = ComponentName.unflattenFromString(
                context.getResources().getString(R.string.image_wallpaper_component));
        mIsLockscreenLiveWallpaperEnabled =
                SystemProperties.getBoolean("persist.wm.debug.lockscreen_live_wallpaper", false);
                SystemProperties.getBoolean("persist.wm.debug.lockscreen_live_wallpaper", true);
    }

    private JournaledFile makeJournaledFile(int userId) {
+1 −1
Original line number Diff line number Diff line
@@ -1603,7 +1603,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
                mWallpaperCropper);

        mIsLockscreenLiveWallpaperEnabled =
                SystemProperties.getBoolean("persist.wm.debug.lockscreen_live_wallpaper", false);
                SystemProperties.getBoolean("persist.wm.debug.lockscreen_live_wallpaper", true);
        mIsMultiCropEnabled =
                SystemProperties.getBoolean("persist.wm.debug.wallpaper_multi_crop", false);
        LocalServices.addService(WallpaperManagerInternal.class, new LocalService());
+1 −1
Original line number Diff line number Diff line
@@ -255,7 +255,7 @@ class WallpaperController {
                resources.getBoolean(
                        com.android.internal.R.bool.config_offsetWallpaperToCenterOfLargestDisplay);
        mIsLockscreenLiveWallpaperEnabled =
                SystemProperties.getBoolean("persist.wm.debug.lockscreen_live_wallpaper", false);
                SystemProperties.getBoolean("persist.wm.debug.lockscreen_live_wallpaper", true);
    }

    void resetLargestDisplay(Display display) {