OSDN Git Service

Handle empty/unspecified crop properly in wallpaper restore
authorChristopher Tate <ctate@google.com>
Mon, 8 Aug 2016 20:09:02 +0000 (13:09 -0700)
committerChristopher Tate <ctate@google.com>
Mon, 8 Aug 2016 23:15:52 +0000 (16:15 -0700)
commitdd7110db2b54c59ff758e25a26a06178b57c2469
tree55683a075f6a8dc8099aa01ef5329957452b62fb
parenta6b1a9485cd02ebec1173a7755164e678dc095ec
Handle empty/unspecified crop properly in wallpaper restore

Pass 'null' as the crop hint when the crop as expressed in the restored
wallpaper metadata is either unspecified or effectively empty.

Bug 30521402
Bug 30274136

Change-Id: I14e5d2bae1ec30fb27e8fd45b340b2ca87f35a01
packages/WallpaperBackup/src/com/android/wallpaperbackup/WallpaperBackupAgent.java