diff options
| author | 2019-12-10 19:08:30 +0000 | |
|---|---|---|
| committer | 2019-12-10 19:08:30 +0000 | |
| commit | dd475a2bc6749c249d2cba0f5310d67efabeb35f (patch) | |
| tree | 9cf1e37d74c05478ba1513aa925f37386b5ece3f | |
| parent | 9c880774442144dcb6546199e359a8ddda8262a2 (diff) | |
| parent | d439f54b1979961e980602344ba4c8173a8a7a8c (diff) | |
Merge "Don't set mLockscreenWallpaper when wallpaper is not supported." into qt-qpr1-dev am: d439f54b19
Change-Id: Iaa49901af2b63a097c269869b4aee5792cb5f61a
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index 7f11759e4f4e..91cf89ce1b05 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -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) { - mLockscreenWallpaper.setCurrentUser(newUserId); + if (mLockscreenWallpaper != null) { + mLockscreenWallpaper.setCurrentUser(newUserId); + } mScrimController.setCurrentUser(newUserId); if (mWallpaperSupported) { mWallpaperChangedReceiver.onReceive(mContext, null); |