commit | 1788442dd1292b573093cf377bc5c18f331d2cde | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Thu Apr 20 14:19:24 2017 -0700 |
committer | Tony Wickham <twickham@google.com> | Thu Apr 20 14:19:24 2017 -0700 |
tree | 557f8e9d9301d1ad22520dfb34dce7a53afcbaf9 | |
parent | 343a77e609382bcb9b1d69ea235a9e6d779b719e [diff] |
Mutate system shortcut icons in popup before tinting Bug: 36865701 Change-Id: Ib5b45fe796b03a9a4a21f1eff90a2c75479ac62e
diff --git a/src/com/android/launcher3/popup/SystemShortcut.java b/src/com/android/launcher3/popup/SystemShortcut.java index de88499..4ccee4a 100644 --- a/src/com/android/launcher3/popup/SystemShortcut.java +++ b/src/com/android/launcher3/popup/SystemShortcut.java
@@ -31,7 +31,7 @@ } 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; }