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

Commit d5c89993 authored by Ehud Shabtai's avatar Ehud Shabtai Committed by Steve Kondik
Browse files

Blend notifications color

parent 68a65d5c
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1041,6 +1041,13 @@ class NotificationManagerService extends INotificationManager.Stub
            }
        }

        // Blend all the colors together
        int ledARGB = 0;
        if (mLedNotification != null) ledARGB = mLedNotification.notification.ledARGB;
        for (int n=0; n < mLights.size(); n++) {
            ledARGB |= mLights.get(n).notification.ledARGB;
        }
	
        // we only flash if screen is off and persistent pulsing is enabled
        if (mLedNotification == null || (mScreenOn && !mNotificationScreenOn) || !mNotificationPulseEnabled) {
            if (mPulseBreathingLight) {
@@ -1051,7 +1058,7 @@ class NotificationManagerService extends INotificationManager.Stub
        } else {
            mHardware.setLightFlashing_UNCHECKED(
                    HardwareService.LIGHT_ID_NOTIFICATIONS,
                    mLedNotification.notification.ledARGB,
                    ledARGB,
                    HardwareService.LIGHT_FLASH_TIMED,
                    mLedNotification.notification.ledOnMS,
                    mLedNotification.notification.ledOffMS);