OSDN Git Service

Turn on dimension validation in wallpaper restore
authorChristopher Tate <ctate@google.com>
Wed, 8 Oct 2014 19:19:48 +0000 (12:19 -0700)
committerChristopher Tate <ctate@google.com>
Wed, 8 Oct 2014 19:19:48 +0000 (12:19 -0700)
Bug 17906491

Change-Id: I4c76c3197df95b51a6e44d1fe2d522b6c05284e5

core/java/android/app/backup/WallpaperBackupHelper.java

index 68ea9e9..75a5237 100644 (file)
@@ -42,7 +42,7 @@ public class WallpaperBackupHelper extends FileBackupHelperBase implements Backu
     // If 'true', then apply an acceptable-size heuristic at restore time, dropping back
     // to the factory default wallpaper if the restored one differs "too much" from the
     // device's preferred wallpaper image dimensions.
-    private static final boolean REJECT_OUTSIZED_RESTORE = false;
+    private static final boolean REJECT_OUTSIZED_RESTORE = true;
 
     // This path must match what the WallpaperManagerService uses
     // TODO: Will need to change if backing up non-primary user's wallpaper