White media notifications are now dimmable

Certain notifications would stay fully white on the
lock screen, when they didn't provide an image.
This looked pretty bad and it made the colorization
slightly unclear.

Change-Id: I8369f5e41ffdf31b1672ae9282fccaaef2294a2e
Fixes: 69171439
Test: add media notification without image, observe normal dimming
This commit is contained in:
Selim Cinek
2017-11-27 15:09:36 +01:00
parent 404f810355
commit 74c2badf3d

View File

@@ -58,6 +58,6 @@ public class NotificationMediaTemplateViewWrapper extends NotificationTemplateVi
@Override
public boolean isDimmable() {
return false;
return getCustomBackgroundColor() == 0;
}
}