From 1788442dd1292b573093cf377bc5c18f331d2cde Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Thu, 20 Apr 2017 14:19:24 -0700 Subject: [PATCH] Mutate system shortcut icons in popup before tinting Bug: 36865701 Change-Id: Ib5b45fe796b03a9a4a21f1eff90a2c75479ac62e --- src/com/android/launcher3/popup/SystemShortcut.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/popup/SystemShortcut.java b/src/com/android/launcher3/popup/SystemShortcut.java index de884996ba..4ccee4aeda 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; }