diff options
| author | 2018-05-08 04:13:35 +0000 | |
|---|---|---|
| committer | 2018-05-08 04:13:35 +0000 | |
| commit | f687efc4553658867998c9f9fa072b3baad6385b (patch) | |
| tree | b24ba928cfda122637d4a978b5fc069331cdd634 | |
| parent | 872a039ab3b0cb6d60e632012f5741cc5440d3c3 (diff) | |
| parent | a47fcc974afece721a661617a24b9e2abbf5949a (diff) | |
Merge "Reload wallpaper after user unlock." into pi-dev
| -rw-r--r-- | services/core/java/com/android/server/wallpaper/WallpaperManagerService.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java b/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java index 0ccbb251d2a2..a7c203dca03b 100644 --- a/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +++ b/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java @@ -1303,8 +1303,10 @@ public class WallpaperManagerService extends IWallpaperManager.Stub synchronized (mLock) { if (mCurrentUserId == userId) { if (mWaitingForUnlock) { - // If we're switching users, now is when we transition the wallpaper - switchUser(userId, null); + // the desired wallpaper is not direct-boot aware, load it now + final WallpaperData systemWallpaper = + getWallpaperSafeLocked(userId, FLAG_SYSTEM); + switchWallpaper(systemWallpaper, null); } // Make sure that the SELinux labeling of all the relevant files is correct. |