Merge "Reload wallpaper after user unlock." into pi-dev

This commit is contained in:
Wei Sheng Shih
2018-05-08 04:13:35 +00:00
committed by Android (Google) Code Review

View File

@@ -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.