Fix shared drawable state

Not calling mutate here had a side-effect making the icon in the
status bar untintable in SysUI.

Bug: 21566007
Change-Id: Ifb78c81ba7f04d496f14031ef635a6e964e6280e
This commit is contained in:
Jorim Jaggi
2015-06-01 16:25:39 -07:00
parent acbe426bbc
commit 03a7c4c6d4

View File

@@ -867,13 +867,13 @@ public class RemoteViews implements Parcelable, Filter {
if (targetDrawable != null) {
// Perform modifications only if values are set correctly
if (alpha != -1) {
targetDrawable.setAlpha(alpha);
targetDrawable.mutate().setAlpha(alpha);
}
if (filterMode != null) {
targetDrawable.setColorFilter(colorFilter, filterMode);
targetDrawable.mutate().setColorFilter(colorFilter, filterMode);
}
if (level != -1) {
targetDrawable.setLevel(level);
targetDrawable.mutate().setLevel(level);
}
}
}