Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03a7c4c6 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

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
parent acbe426b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);
                }
            }
        }