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

Commit e1237a90 authored by Steve Kondik's avatar Steve Kondik
Browse files

lights: Enable amber-green related options by default

Change-Id: I793c5d2158f6937f0874d0594195bdb674f0b972
parent 5eeb8e58
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -527,20 +527,22 @@ class NotificationManagerService extends INotificationManager.Stub {
                mNotificationPulseEnabled = pulseEnabled;
                updateNotificationPulse();
            }

            // Next three settings are only for amber-green LED mode
            boolean blinkEnabled = Settings.System.getInt(resolver,
                    Settings.System.NOTIFICATION_LIGHT_BLINK, 0) != 0;
                    Settings.System.NOTIFICATION_LIGHT_BLINK, 1) != 0;
            if (mNotificationBlinkEnabled != blinkEnabled) {
                mNotificationBlinkEnabled = blinkEnabled;
                updateLights();
            }
            boolean alwaysOnEnabled = Settings.System.getInt(resolver,
                    Settings.System.NOTIFICATION_LIGHT_ALWAYS_ON, 0) != 0;
                    Settings.System.NOTIFICATION_LIGHT_ALWAYS_ON, 1) != 0;
            if (mNotificationAlwaysOnEnabled != alwaysOnEnabled) {
                mNotificationAlwaysOnEnabled = alwaysOnEnabled;
                updateLights();
            }
            boolean chargingEnabled = Settings.System.getInt(resolver,
                    Settings.System.NOTIFICATION_LIGHT_CHARGING, 0) != 0;
                    Settings.System.NOTIFICATION_LIGHT_CHARGING, 1) != 0;
            if (mNotificationChargingEnabled != chargingEnabled) {
                mNotificationChargingEnabled = chargingEnabled;
                updateAmberLight();