OSDN Git Service

Fix live wallpaper not showing on lock screen after restore
authorBryan Mawhinney <bryanmawhinney@google.com>
Tue, 7 Feb 2017 15:27:19 +0000 (15:27 +0000)
committerBryan Mawhinney <bryanmawhinney@google.com>
Tue, 7 Feb 2017 15:37:40 +0000 (15:37 +0000)
commit96eb5b724bab31125e15eef2c926f6648567c3a1
tree30a1a2949c80158a595433abb0bb859fa36d4182
parent5c14853296172fe9885eee26d86351bd935e8430
Fix live wallpaper not showing on lock screen after restore

A recent change in nyc-mr2 means that setWallpaperComponent will
promote any static system wallpaper to the lock screen.  If we don't
actually have a static lock wallpaper to restore, we need to explicitly
clear the lock wallpaper to have the live one show through

Test: manually using adb backup / restore
Bug: 35090402
Change-Id: I8a2c5ffbaefe172c9d78a9f746ab87d9bc6b7448
packages/WallpaperBackup/src/com/android/wallpaperbackup/WallpaperBackupAgent.java