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

Commit a53f85a5 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where legacy icons where incorrectly colored

Because we were unconditionally applying the color when
set to dark

Change-Id: I4321a81fcd0f04f921752a5dcb8c3cbd47af36b7
parent ea4bef73
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -135,12 +135,22 @@ public class NotificationTemplateViewWrapper extends NotificationViewWrapper {
            }
        }
        if (mIcon != null) {
            boolean hadColorFilter = mNotificationHeader.getOriginalIconColor()
                    != NotificationHeaderView.NO_COLOR;
            if (fade) {
                if (hadColorFilter) {
                    fadeIconColorFilter(mIcon, dark, delay);
                    fadeIconAlpha(mIcon, dark, delay);
                } else {
                    fadeGrayscale(mIcon, dark, delay);
                }
            } else {
                if (hadColorFilter) {
                    updateIconColorFilter(mIcon, dark);
                    updateIconAlpha(mIcon, dark);
                } else {
                    updateGrayscale(mIcon, dark);
                }
            }
        }
        setPictureGrayscale(dark, fade, delay);