From 74c2badf3d24e4fb495c99ea784462d547b1e991 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Mon, 27 Nov 2017 15:09:36 +0100 Subject: [PATCH] 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 --- .../notification/NotificationMediaTemplateViewWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationMediaTemplateViewWrapper.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationMediaTemplateViewWrapper.java index eb211a10737b5..4d58cb88dd13d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationMediaTemplateViewWrapper.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationMediaTemplateViewWrapper.java @@ -58,6 +58,6 @@ public class NotificationMediaTemplateViewWrapper extends NotificationTemplateVi @Override public boolean isDimmable() { - return false; + return getCustomBackgroundColor() == 0; } }