diff options
author | Tony Wickham <twickham@google.com> | 2017-04-20 14:19:24 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-04-20 14:19:24 -0700 |
commit | 1788442dd1292b573093cf377bc5c18f331d2cde (patch) | |
tree | 557f8e9d9301d1ad22520dfb34dce7a53afcbaf9 /src/com/android/launcher3/popup | |
parent | 343a77e609382bcb9b1d69ea235a9e6d779b719e (diff) | |
download | android_packages_apps_Trebuchet-1788442dd1292b573093cf377bc5c18f331d2cde.tar.gz android_packages_apps_Trebuchet-1788442dd1292b573093cf377bc5c18f331d2cde.tar.bz2 android_packages_apps_Trebuchet-1788442dd1292b573093cf377bc5c18f331d2cde.zip |
Mutate system shortcut icons in popup before tinting
Bug: 36865701
Change-Id: Ib5b45fe796b03a9a4a21f1eff90a2c75479ac62e
Diffstat (limited to 'src/com/android/launcher3/popup')
-rw-r--r-- | src/com/android/launcher3/popup/SystemShortcut.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/popup/SystemShortcut.java b/src/com/android/launcher3/popup/SystemShortcut.java index de884996b..4ccee4aed 100644 --- a/src/com/android/launcher3/popup/SystemShortcut.java +++ b/src/com/android/launcher3/popup/SystemShortcut.java @@ -31,7 +31,7 @@ public abstract class SystemShortcut { } public Drawable getIcon(Context context, int colorAttr) { - Drawable icon = context.getResources().getDrawable(mIconResId); + Drawable icon = context.getResources().getDrawable(mIconResId, context.getTheme()).mutate(); icon.setTint(Themes.getAttrColor(context, colorAttr)); return icon; } |