am 3fd0e71b: am 0da93008: mutate() BitmapDrawable before directly editing
* commit '3fd0e71bf716dd0fe4e856fc4d6ddc88119062f4':
mutate() BitmapDrawable before directly editing
diff --git a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java
index dc8970b..af50d6b 100644
--- a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java
+++ b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java
@@ -559,15 +559,18 @@
if (entry.shouldApplyColor()) {
Drawable icon = entry.getIcon();
if (icon != null) {
+ icon.mutate();
icon.setColorFilter(mThemeColorFilter);
}
}
Drawable alternateIcon = entry.getAlternateIcon();
if (alternateIcon != null) {
+ alternateIcon.mutate();
alternateIcon.setColorFilter(mThemeColorFilter);
}
Drawable thirdIcon = entry.getThirdIcon();
if (thirdIcon != null) {
+ thirdIcon.mutate();
thirdIcon.setColorFilter(mThemeColorFilter);
}
}