summaryrefslogtreecommitdiff
path: root/src/com/android/customization/model/theme
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-05-09 20:14:06 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-05-09 20:14:06 +0000
commit355ced9b92514b14581253207ffe29e07ddb4678 (patch)
tree7b45eb9f06c239615bf55a9162ded86e670977bd /src/com/android/customization/model/theme
parente2c2d5f624551a3774e2f043288dd7cc230613e3 (diff)
parent175275c9e7a4597d877a4388208ed98a966969fb (diff)
downloadThemePicker-355ced9b92514b14581253207ffe29e07ddb4678.tar.gz
Merge "Theme picker polish fixes." into ub-launcher3-qt-dev
Diffstat (limited to 'src/com/android/customization/model/theme')
-rw-r--r--src/com/android/customization/model/theme/custom/ThemeComponentOption.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/customization/model/theme/custom/ThemeComponentOption.java b/src/com/android/customization/model/theme/custom/ThemeComponentOption.java
index fa45931f..2dc163e6 100644
--- a/src/com/android/customization/model/theme/custom/ThemeComponentOption.java
+++ b/src/com/android/customization/model/theme/custom/ThemeComponentOption.java
@@ -150,7 +150,8 @@ public abstract class ThemeComponentOption implements CustomizationOption<ThemeC
@Override
public void bindThumbnailTile(View view) {
Resources res = view.getContext().getResources();
- Drawable icon = mIcons.get(THUMBNAIL_ICON_POSITION).mutate();
+ Drawable icon = mIcons.get(THUMBNAIL_ICON_POSITION)
+ .getConstantState().newDrawable().mutate();
icon.setTint(res.getColor(R.color.icon_thumbnail_color, null));
((ImageView) view.findViewById(R.id.option_icon)).setImageDrawable(
icon);