summaryrefslogtreecommitdiff
path: root/src/com/android/customization/model/theme
diff options
context:
space:
mode:
author“Chuck <chuckliao@google.com>2020-03-22 03:05:44 +0800
committer“Chuck <chuckliao@google.com>2020-03-23 14:58:34 +0800
commitc7647b6eb1e3691f011a1b3d241454487cf3257e (patch)
tree811b1809ec0bf8fd353be475dfd21ed7ac1cface /src/com/android/customization/model/theme
parent16773d09cb885f7f2d1bb06daf89e8112c95153e (diff)
downloadThemePicker-c7647b6eb1e3691f011a1b3d241454487cf3257e.tar.gz
Implement the checkmark and the blue border showing/hiding flow.
Bug: 150840985 Change-Id: I2372aee6c646f18c190fa4b83c3ce22e95806c30
Diffstat (limited to 'src/com/android/customization/model/theme')
-rw-r--r--src/com/android/customization/model/theme/ThemeManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/customization/model/theme/ThemeManager.java b/src/com/android/customization/model/theme/ThemeManager.java
index e4981b08..79b45fd3 100644
--- a/src/com/android/customization/model/theme/ThemeManager.java
+++ b/src/com/android/customization/model/theme/ThemeManager.java
@@ -23,6 +23,7 @@ import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY
import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SYSUI;
import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_THEMEPICKER;
import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_SHAPE;
+
import android.graphics.Point;
import android.provider.Settings;
import android.text.TextUtils;
@@ -37,6 +38,7 @@ import com.android.customization.module.ThemesUserEventLogger;
import com.android.wallpaper.R;
import com.android.wallpaper.asset.Asset;
import com.android.wallpaper.model.LiveWallpaperInfo;
+import com.android.wallpaper.model.WallpaperInfo;
import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
import com.android.wallpaper.module.WallpaperSetter;
import com.android.wallpaper.util.WallpaperCropUtils;
@@ -106,7 +108,7 @@ public class ThemeManager implements CustomizationManager<ThemeBundle> {
private SetWallpaperCallback createSetWallpaperCallback(ThemeBundle theme, Callback callback) {
return new SetWallpaperCallback() {
@Override
- public void onSuccess() {
+ public void onSuccess(WallpaperInfo wallpaperInfo) {
applyWallpaperOptions(theme);
applyOverlays(theme, callback);
}