diff options
author | Jorim Jaggi <jjaggi@google.com> | 2015-06-01 16:25:39 -0700 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2015-06-01 23:59:00 +0000 |
commit | 03a7c4c6d4f30416b3fa6e9018f098c0fa41bbd5 (patch) | |
tree | cc2b172557a107dd791aa429666b143148b5ef6d /core/java/android/widget/RemoteViews.java | |
parent | acbe426bbc126575e588d3cbd6bd09ee194e6dd0 (diff) | |
download | frameworks_base-03a7c4c6d4f30416b3fa6e9018f098c0fa41bbd5.zip frameworks_base-03a7c4c6d4f30416b3fa6e9018f098c0fa41bbd5.tar.gz frameworks_base-03a7c4c6d4f30416b3fa6e9018f098c0fa41bbd5.tar.bz2 |
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
Diffstat (limited to 'core/java/android/widget/RemoteViews.java')
-rw-r--r-- | core/java/android/widget/RemoteViews.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java index dc75fd0..74843ee 100644 --- a/core/java/android/widget/RemoteViews.java +++ b/core/java/android/widget/RemoteViews.java @@ -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); } } } |