diff --git a/services/core/java/com/android/server/notification/NotificationRecord.java b/services/core/java/com/android/server/notification/NotificationRecord.java index 77f278b3c8e665011f6ddfd1962f3053e48b4ee7..f2d2eac17ffc9ffb13c61442b582e7424456488d 100644 --- a/services/core/java/com/android/server/notification/NotificationRecord.java +++ b/services/core/java/com/android/server/notification/NotificationRecord.java @@ -218,6 +218,11 @@ public final class NotificationRecord { if ((notification.defaults & Notification.DEFAULT_LIGHTS) != 0) { light = new Light(defaultLightColor, defaultLightOn, defaultLightOff); + } else if (light.color == 0) { + // User has requested color 0. However, lineage-sdk interprets + // color 0 as "supply a default" therefore adjust alpha to make + // the color still black but non-zero. + light = new Light(0x01000000, light.onMs, light.offMs); } } else { light = null;