Fix lock screen wallpaper
LockscreenWallpaper was set to null on NotificationMediaManager because StatusBar#mWallpaperSupported was not initialized yet. Fixes: 146252300 Test: manual Change-Id: I4c5151ad6b40d0f0996fdbb825745729cc003425
This commit is contained in:
@@ -813,6 +813,8 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
ServiceManager.getService(Context.STATUS_BAR_SERVICE));
|
ServiceManager.getService(Context.STATUS_BAR_SERVICE));
|
||||||
|
|
||||||
mKeyguardManager = (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE);
|
mKeyguardManager = (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE);
|
||||||
|
mWallpaperSupported =
|
||||||
|
mContext.getSystemService(WallpaperManager.class).isWallpaperSupported();
|
||||||
|
|
||||||
// Connect in to the status bar manager service
|
// Connect in to the status bar manager service
|
||||||
mCommandQueue.addCallback(this);
|
mCommandQueue.addCallback(this);
|
||||||
@@ -826,9 +828,6 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
|
|
||||||
createAndAddWindows(result);
|
createAndAddWindows(result);
|
||||||
|
|
||||||
mWallpaperSupported =
|
|
||||||
mContext.getSystemService(WallpaperManager.class).isWallpaperSupported();
|
|
||||||
|
|
||||||
if (mWallpaperSupported) {
|
if (mWallpaperSupported) {
|
||||||
// Make sure we always have the most current wallpaper info.
|
// Make sure we always have the most current wallpaper info.
|
||||||
IntentFilter wallpaperChangedFilter = new IntentFilter(Intent.ACTION_WALLPAPER_CHANGED);
|
IntentFilter wallpaperChangedFilter = new IntentFilter(Intent.ACTION_WALLPAPER_CHANGED);
|
||||||
|
|||||||
Reference in New Issue
Block a user