Handle empty/unspecified crop properly in wallpaper restore am: dd7110db2b

am: 2ba9127494

Change-Id: I7644603b3ff7dcbd0c9b43cc170da19172949d15
This commit is contained in:
Christopher Tate
2016-08-09 00:51:08 +00:00
committed by android-build-merger

View File

@@ -238,7 +238,7 @@ public class WallpaperBackupAgent extends BackupAgent {
Slog.v(TAG, "Restored crop hint " + cropHint);
}
try (FileInputStream in = new FileInputStream(stage)) {
mWm.setStream(in, cropHint, true, which);
mWm.setStream(in, cropHint.isEmpty() ? null : cropHint, true, which);
} finally {} // auto-closes 'in'
}
}