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

Commit 11eb8437 authored by ChainsDD's avatar ChainsDD
Browse files

Prevent the breathing light from pulsing when the screen is turned back on.

parent a250e08d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1040,7 +1040,6 @@ class NotificationManagerService extends INotificationManager.Stub
        if (mLedNotification == null || (mScreenOn && !mNotificationScreenOn) || !mNotificationPulseEnabled) {
            if (mPulseBreathingLight) {
                mHardware.pulseBreathingLight();
                mPulseBreathingLight = false;
            } else {
                mHardware.setLightOff_UNCHECKED(HardwareService.LIGHT_ID_NOTIFICATIONS);
            }
@@ -1052,6 +1051,7 @@ class NotificationManagerService extends INotificationManager.Stub
                    mLedNotification.notification.ledOnMS,
                    mLedNotification.notification.ledOffMS);
        }
        mPulseBreathingLight = false;
    }

    // lock on mNotificationList