frameworks/base
Révision | d52eff672729e7bf6735b969e96d3d2f5c307afb (tree) |
---|---|
l'heure | 2019-12-18 09:34:12 |
Auteur | TreeHugger Robot <treehugger-gerrit@goog...> |
Commiter | Android (Google) Code Review |
Merge "Fix lock screen wallpaper" into qt-qpr1-dev
@@ -694,6 +694,8 @@ public class StatusBar extends SystemUI implements DemoMode, | ||
694 | 694 | |
695 | 695 | mKeyguardManager = (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE); |
696 | 696 | mFalsingManager = Dependency.get(FalsingManager.class); |
697 | + mWallpaperSupported = | |
698 | + mContext.getSystemService(WallpaperManager.class).isWallpaperSupported(); | |
697 | 699 | |
698 | 700 | // Connect in to the status bar manager service |
699 | 701 | mCommandQueue = getComponent(CommandQueue.class); |
@@ -708,9 +710,6 @@ public class StatusBar extends SystemUI implements DemoMode, | ||
708 | 710 | |
709 | 711 | createAndAddWindows(result); |
710 | 712 | |
711 | - mWallpaperSupported = | |
712 | - mContext.getSystemService(WallpaperManager.class).isWallpaperSupported(); | |
713 | - | |
714 | 713 | if (mWallpaperSupported) { |
715 | 714 | // Make sure we always have the most current wallpaper info. |
716 | 715 | IntentFilter wallpaperChangedFilter = new IntentFilter(Intent.ACTION_WALLPAPER_CHANGED); |