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

Commit d439f54b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't set mLockscreenWallpaper when wallpaper is not supported." into qt-qpr1-dev

parents e18c350e 5f94c857
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -344,6 +344,7 @@ public class StatusBar extends SystemUI implements DemoMode,
    private boolean mBrightnessMirrorVisible;
    protected BiometricUnlockController mBiometricUnlockController;
    protected LightBarController mLightBarController;
    @Nullable
    protected LockscreenWallpaper mLockscreenWallpaper;
    @VisibleForTesting
    protected AutoHideController mAutoHideController;
@@ -891,7 +892,7 @@ public class StatusBar extends SystemUI implements DemoMode,

        createNavigationBar(result);

        if (ENABLE_LOCKSCREEN_WALLPAPER) {
        if (ENABLE_LOCKSCREEN_WALLPAPER && mWallpaperSupported) {
            mLockscreenWallpaper = new LockscreenWallpaper(mContext, this, mHandler);
        }

@@ -2748,7 +2749,9 @@ public class StatusBar extends SystemUI implements DemoMode,

    @Override
    public void setLockscreenUser(int newUserId) {
        if (mLockscreenWallpaper != null) {
            mLockscreenWallpaper.setCurrentUser(newUserId);
        }
        mScrimController.setCurrentUser(newUserId);
        if (mWallpaperSupported) {
            mWallpaperChangedReceiver.onReceive(mContext, null);