Merge "Notification icons: Correctly apply color filter for DrawableContainers" into nyc-mr1-dev

This commit is contained in:
Adrian Roos
2016-07-22 20:12:19 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}