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

Commit 4c297170 authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

Notification icons: Correctly apply color filter for DrawableContainers am: 4aad4552

am: e6008ed8

Change-Id: I90257c1cef215ad39b18a2ae9ffad15e65f25548
parents 23f440d3 e6008ed8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -240,7 +240,11 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper {
        // Also, the notification might have been modified during the animation, so background
        // might be null here.
        if (iconDrawable != null) {
            iconDrawable.mutate().setColorFilter(mIconColorFilter);
            Drawable d = iconDrawable.mutate();
            // DrawableContainer ignores the color filter if it's already set, so clear it first to
            // get it set and invalidated properly.
            d.setColorFilter(null);
            d.setColorFilter(mIconColorFilter);
        }
    }