summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Wei Sheng Shih <wilsonshih@google.com> 2018-05-08 04:13:35 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-05-08 04:13:35 +0000
commitf687efc4553658867998c9f9fa072b3baad6385b (patch)
treeb24ba928cfda122637d4a978b5fc069331cdd634
parent872a039ab3b0cb6d60e632012f5741cc5440d3c3 (diff)
parenta47fcc974afece721a661617a24b9e2abbf5949a (diff)
Merge "Reload wallpaper after user unlock." into pi-dev
-rw-r--r--services/core/java/com/android/server/wallpaper/WallpaperManagerService.java6
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.