diff options
author | chihhangchuang <chihhangchuang@google.com> | 2020-06-08 12:58:06 +0800 |
---|---|---|
committer | chihhangchuang <chihhangchuang@google.com> | 2020-06-08 13:02:21 +0800 |
commit | ec6f61b2fe64377b8729eead8598f571b7aeaf51 (patch) | |
tree | abd572edaa2a6f06c4a8e6d5e68b6d671f537e9a /src/com/android/customization/widget/OptionSelectorController.java | |
parent | b534562d4519e5605a6bf086812634928816774e (diff) |
Make check icon in thumbnail tile vary against system accent color
Mock:
https://docs.google.com/presentation/d/15JadcGi5k1_0znUN_XdFpU7UxeXwxjK3Y7LxvhW5ETM/edit?ts=5eb5f9a8#slide=id.g777aaff414_1_0
Screenshot:
https://screenshot.googleplex.com/D8Oua3hJ5qg.png
https://screenshot.googleplex.com/b4sBUjrQwak.png
https://screenshot.googleplex.com/1NFNw5yGpMR.png
Test: Manually
Fixes: 158429764
Change-Id: Ic20576505bebd61c8cda3e2ccc54973dee62acf8
Diffstat (limited to 'src/com/android/customization/widget/OptionSelectorController.java')
-rw-r--r-- | src/com/android/customization/widget/OptionSelectorController.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/customization/widget/OptionSelectorController.java b/src/com/android/customization/widget/OptionSelectorController.java index ef973852..a532e401 100644 --- a/src/com/android/customization/widget/OptionSelectorController.java +++ b/src/com/android/customization/widget/OptionSelectorController.java @@ -190,7 +190,8 @@ public class OptionSelectorController<T extends CustomizationOption<T>> { if (mShowCheckmark && option.equals(mAppliedOption)) { Resources res = mContainer.getContext().getResources(); - Drawable checkmark = res.getDrawable(R.drawable.ic_check_circle_filled_24px); + Drawable checkmark = res.getDrawable(R.drawable.check_circle_accent_24dp, + mContainer.getContext().getTheme()); Drawable frame = holder.tileView.getForeground(); Drawable[] layers = {frame, checkmark}; if (frame == null) { |