OSDN Git Service

Fix wallpaper backup eligibility test
authorChristopher Tate <ctate@google.com>
Fri, 19 Aug 2016 18:21:07 +0000 (11:21 -0700)
committerChristopher Tate <ctate@google.com>
Fri, 19 Aug 2016 23:40:09 +0000 (16:40 -0700)
Bug 30970354
Bug 30938483

Change-Id: I3c933a80505238897ceb8e89c228ed48ee5a9d0e

services/core/java/com/android/server/wallpaper/WallpaperManagerService.java

index 64f79e1..4983111 100644 (file)
@@ -1757,8 +1757,8 @@ public class WallpaperManagerService extends IWallpaperManager.Stub {
         }
 
         WallpaperData wallpaper = (which == FLAG_LOCK)
-                ? mWallpaperMap.get(userId)
-                : mLockWallpaperMap.get(userId);
+                ? mLockWallpaperMap.get(userId)
+                : mWallpaperMap.get(userId);
         return (wallpaper != null) ? wallpaper.allowBackup : false;
     }