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

Commit a2813cd4 authored by Mao Li's avatar Mao Li Committed by Gerrit - the friendly Code Review server
Browse files

NotificationLED: enable notification led blink when screen is off

By default, notification led will not blink if the device screen
is off, but actually, 'blinking when screen is off' is a very
important feature for end user, there are a lot of high-end smart
phones which integrate RGB led and need the leds blink even when
screen is off, for example: when user receives a missed call, or
a missed sms, the RGB led will blink when screen is off.

To support this, call updateNotificationPulse() when screen is off.

Change-Id: Ib35353514c2af868e37098e5b4e2cd0c8b8fae78
parent 1df64cd7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -716,6 +716,7 @@ public class NotificationManagerService extends SystemService {
                mScreenOn = true;
            } else if (action.equals(Intent.ACTION_SCREEN_OFF)) {
                mScreenOn = false;
                updateNotificationPulse();
            } else if (action.equals(TelephonyManager.ACTION_PHONE_STATE_CHANGED)) {
                mInCall = TelephonyManager.EXTRA_STATE_OFFHOOK
                        .equals(intent.getStringExtra(TelephonyManager.EXTRA_STATE));