From c7647b6eb1e3691f011a1b3d241454487cf3257e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChuck?= Date: Sun, 22 Mar 2020 03:05:44 +0800 Subject: Implement the checkmark and the blue border showing/hiding flow. Bug: 150840985 Change-Id: I2372aee6c646f18c190fa4b83c3ce22e95806c30 --- src/com/android/customization/model/theme/ThemeManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { private SetWallpaperCallback createSetWallpaperCallback(ThemeBundle theme, Callback callback) { return new SetWallpaperCallback() { @Override - public void onSuccess() { + public void onSuccess(WallpaperInfo wallpaperInfo) { applyWallpaperOptions(theme); applyOverlays(theme, callback); } -- cgit v1.2.3 From de552cd230361251d23fd1ef98689155cfa018df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChuck?= Date: Wed, 25 Mar 2020 16:21:53 +0800 Subject: Adjust the the layout of the category tiles, including font size and color. Bug: 152201119 Change-Id: I869b34b91022e1fc79c62e4abfb82c19ce7df19b --- res/color/option_title_color.xml | 27 --------------------------- res/values/dimens.xml | 1 - res/values/styles.xml | 7 ------- 3 files changed, 35 deletions(-) delete mode 100644 res/color/option_title_color.xml diff --git a/res/color/option_title_color.xml b/res/color/option_title_color.xml deleted file mode 100644 index 2809247c..00000000 --- a/res/color/option_title_color.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 827ffec2..49daee41 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -45,7 +45,6 @@ 16dp 15dp - 12sp 6dp 4dp diff --git a/res/values/styles.xml b/res/values/styles.xml index eb88140a..0b61fe4b 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -69,13 +69,6 @@ -