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

Commit a60c4335 authored by Alexander Hofbauer's avatar Alexander Hofbauer Committed by Steve Kondik
Browse files

Update amber/green for quiet hours

Also cleaned up the tabs/spaces mess so that Evan isn't irritated that
much.

Change-Id: I83b3f8d725dfd60902bbf47d77b9b48b103cfdfa
parent cb3a1d56
Loading
Loading
Loading
Loading
+23 −24
Original line number Diff line number Diff line
@@ -1389,8 +1389,7 @@ public class NotificationManagerService extends INotificationManager.Stub
    }

    // lock on mNotificationList
    private void updateLightsLocked()
    {
    private void updateLightsLocked() {
        if (mAmberGreenLight) {
            updateGreenLightLocked();
        } else {
@@ -1545,10 +1544,10 @@ public class NotificationManagerService extends INotificationManager.Stub
        }

        boolean greenOn = mGreenLightOn;
        //final boolean inQuietHours = inQuietHours();
        final boolean inQuietHours = inQuietHours();

        // disable light if screen is on and "always show" is off
        if (mLedNotification == null || mInCall //|| inQuietHours
        if (mLedNotification == null || mInCall || inQuietHours
                || (mScreenOn && !mNotificationAlwaysOnEnabled)) {
            mNotificationLight.turnOff();
            mGreenLightOn = false;