summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2017-11-27 15:09:36 +0100
committer Selim Cinek <cinek@google.com> 2017-11-27 15:09:36 +0100
commit74c2badf3d24e4fb495c99ea784462d547b1e991 (patch)
tree94eae8d1e1953f261a05ce9c0c59c0e7e2e50e27
parent404f810355237206d35d01ee5fa000aa5b41346f (diff)
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
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationMediaTemplateViewWrapper.java2
1 files changed, 1 insertions, 1 deletions
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 eb211a10737b..4d58cb88dd13 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;
}
}