Merge "Handle empty/unspecified crop properly in wallpaper restore" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0b26adbb8b
@@ -238,7 +238,7 @@ public class WallpaperBackupAgent extends BackupAgent {
|
|||||||
Slog.v(TAG, "Restored crop hint " + cropHint);
|
Slog.v(TAG, "Restored crop hint " + cropHint);
|
||||||
}
|
}
|
||||||
try (FileInputStream in = new FileInputStream(stage)) {
|
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'
|
} finally {} // auto-closes 'in'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user