Merge "Mutate system shortcut icons in popup before tinting" into ub-launcher3-dorval

This commit is contained in:
Tony Wickham authored and Android (Google) Code Review committed 2017-04-20 22:13:20 +00:00
commit cf895ccc2c
1 file changed
+1 -1
@@ -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;
}