diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-05-09 20:14:06 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-05-09 20:14:06 +0000 |
commit | 355ced9b92514b14581253207ffe29e07ddb4678 (patch) | |
tree | 7b45eb9f06c239615bf55a9162ded86e670977bd /src/com/android/customization/model/theme | |
parent | e2c2d5f624551a3774e2f043288dd7cc230613e3 (diff) | |
parent | 175275c9e7a4597d877a4388208ed98a966969fb (diff) | |
download | ThemePicker-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.java | 3 |
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); |