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

Commit a7f31549 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

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

parents 6356f9de 2ecd0e4f
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());
    }