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

Commit 461841f4 authored by Sam Mortimer's avatar Sam Mortimer
Browse files

frameworks/base lights: Always allow LineageNotificationLights set the default color

*) Oreo sdk onwards deprecates notification DEFAULT_LIGHTS.  However,
   LineageNotificationLights currently uses this flag to determine
   if we should generate an app specific color.

*) Use a light color of 0 to indicate that the app (or channel) has not
   set an explicit preference and that lineage lights should set a
   default.

Change-Id: I1f655aa17cb97c5a042a424ad1e8bd9d5ddec9a2
parent ab4f3fa2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -197,8 +197,8 @@ public final class NotificationRecord {
    }

    private Light calculateLights() {
        int defaultLightColor = mContext.getResources().getColor(
                com.android.internal.R.color.config_defaultNotificationColor);
        // Lineage lights will set the default color later
        int defaultLightColor = 0;
        int defaultLightOn = mContext.getResources().getInteger(
                com.android.internal.R.integer.config_defaultNotificationLedOn);
        int defaultLightOff = mContext.getResources().getInteger(