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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user