Fix incorrect metadata for home wallpaper
We were setting the Home wallpaper's action label and
icon when saving Lock wallpaper's metadata.
Bug: 110274786
Change-Id: I745df4926c35639d7d4f49e0982e371a0e6afbd3
diff --git a/src/com/android/wallpaper/module/DefaultWallpaperPersister.java b/src/com/android/wallpaper/module/DefaultWallpaperPersister.java
index 1c9c0ba..be08a39 100755
--- a/src/com/android/wallpaper/module/DefaultWallpaperPersister.java
+++ b/src/com/android/wallpaper/module/DefaultWallpaperPersister.java
@@ -1015,9 +1015,9 @@
mWallpaperPreferences.setLockWallpaperAttributions(
mWallpaper.getAttributions(mAppContext));
mWallpaperPreferences.setLockWallpaperActionUrl(mWallpaper.getActionUrl(mAppContext));
- mWallpaperPreferences.setHomeWallpaperActionLabelRes(
+ mWallpaperPreferences.setLockWallpaperActionLabelRes(
mWallpaper.getActionLabelRes(mAppContext));
- mWallpaperPreferences.setHomeWallpaperActionIconRes(
+ mWallpaperPreferences.setLockWallpaperActionIconRes(
mWallpaper.getActionIconRes(mAppContext));
mWallpaperPreferences.setLockWallpaperCollectionId(
mWallpaper.getCollectionId(mAppContext));