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

Commit fd73e543 authored by ChainsDD's avatar ChainsDD
Browse files

Make pulseBreathingLightColor(int color) a new function instead of overloading...

Make pulseBreathingLightColor(int color) a new function instead of overloading pulseBreathingLight().
parent ae49dcd8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -305,10 +305,10 @@ public class HardwareService extends IHardwareService.Stub {

    // Overload this function to prevent possibly breaking anything.
    public void pulseBreathingLight() {
        pulseBreathingLight(0x00ffffff);
        pulseBreathingLightColor(0x00ffffff);
    }

    public void pulseBreathingLight(int color) {
    public void pulseBreathingLightColor(int color) {
        synchronized (this) {
            // HACK: Added at the last minute of cupcake -- design this better;
            // Don't reuse the attention light -- make another one.
+1 −1
Original line number Diff line number Diff line
@@ -1044,7 +1044,7 @@ class NotificationManagerService extends INotificationManager.Stub
        // we only flash if screen is off and persistent pulsing is enabled
        if (mLedNotification == null || (mScreenOn && !mNotificationScreenOn) || !mNotificationPulseEnabled) {
            if (mPulseBreathingLight) {
                mHardware.pulseBreathingLight(mBreathingLightColor);
                mHardware.pulseBreathingLightColor(mBreathingLightColor);
            } else {
                mHardware.setLightOff_UNCHECKED(HardwareService.LIGHT_ID_NOTIFICATIONS);
            }