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

Commit 2ecd0e4f authored by Chris Poultney's avatar Chris Poultney Committed by Aurélien Pomini
Browse files

Lock screen LWP: add field for whether lock screen live wp is enabled

Bug: 253507223
Test: None
Change-Id: I461ca76e18f9a794c0265af60ab64988ecb9fada
parent 3ad4f200
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -189,6 +189,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
    }

    private final Object mLock = new Object();
    private final boolean mEnableSeparateLockScreenEngine;

    /**
     * Minimum time between crashes of a wallpaper service for us to consider
@@ -1759,6 +1760,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
        mMonitor = new MyPackageMonitor();
        mColorsChangedListeners = new SparseArray<>();

        mEnableSeparateLockScreenEngine = mContext.getResources().getBoolean(
                R.bool.config_independentLockscreenLiveWallpaper);

        LocalServices.addService(WallpaperManagerInternal.class, new LocalService());
    }