WallpaperPreferences update for live wallpapers
- Add wallpaper service name into WallpaperPreferences.
- Add missing keys for clearLockWallpaperMetadata.
Test: Manual
Bug: 156345208
Change-Id: Id82e13150f8664c05edee30465233cc24dfc9e31
diff --git a/src/com/android/wallpaper/module/DefaultWallpaperPersister.java b/src/com/android/wallpaper/module/DefaultWallpaperPersister.java
index 60527d0..2e23338 100755
--- a/src/com/android/wallpaper/module/DefaultWallpaperPersister.java
+++ b/src/com/android/wallpaper/module/DefaultWallpaperPersister.java
@@ -545,6 +545,8 @@
.setHomeWallpaperAttributions(mWallpaperInfoInPreview.getAttributions(mAppContext));
mWallpaperPreferences.setHomeWallpaperPackageName(
previewedWallpaperComponent.getPackageName());
+ mWallpaperPreferences.setHomeWallpaperServiceName(
+ previewedWallpaperComponent.getServiceName());
mWallpaperPreferences.setHomeWallpaperCollectionId(
mWallpaperInfoInPreview.getCollectionId(mAppContext));
mWallpaperPreferences.setWallpaperPresentationMode(