Merge "Fix live wallpaper not showing on lock screen after restore" into nyc-mr2-dev

am: 5de3e5ab36

Change-Id: Icb15885a9ffb763dac1acf4db4685b3c8dcb5ac5
This commit is contained in:
Bryan Mawhinney
2017-02-13 20:54:11 +00:00
committed by android-build-merger

View File

@@ -230,6 +230,11 @@ public class WallpaperBackupAgent extends BackupAgent {
Slog.i(TAG, "Using wallpaper service " + wpService);
}
mWm.setWallpaperComponent(wpService, UserHandle.USER_SYSTEM);
if (!lockImageStage.exists()) {
// We have a live wallpaper and no static lock image,
// allow live wallpaper to show "through" on lock screen.
mWm.clear(FLAG_LOCK);
}
} else {
if (DEBUG) {
Slog.v(TAG, "Can't use wallpaper service " + wpService);