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

Commit 432e3873 authored by Steve Kondik's avatar Steve Kondik
Browse files

lights: Enable amber-green related options by default.

Without this, the user is left with no lights at all, which will
be very confusing.

Change-Id: I7c749258465be8032b5d7413ab57099668848793
parent 3cf8ef85
Loading
Loading
Loading
Loading
+11 −21
Original line number Diff line number Diff line
@@ -158,27 +158,17 @@ public class SoundSettings extends PreferenceActivity implements
        if (amberGreenLight) {
            mSoundSettings.removePreference(mNotificationPulse);

            try {
            mNotificationBlink.setChecked(Settings.System.getInt(resolver,
                        Settings.System.NOTIFICATION_LIGHT_BLINK) == 1);
                    Settings.System.NOTIFICATION_LIGHT_BLINK, 1) == 1);
            mNotificationBlink.setOnPreferenceChangeListener(this);
            } catch (SettingNotFoundException snfe) {
                Log.e(TAG, Settings.System.NOTIFICATION_LIGHT_BLINK + " not found");
            }
            try {

            mNotificationAlwaysOn.setChecked(Settings.System.getInt(resolver,
                        Settings.System.NOTIFICATION_LIGHT_ALWAYS_ON) == 1);
                    Settings.System.NOTIFICATION_LIGHT_ALWAYS_ON, 1) == 1);
            mNotificationAlwaysOn.setOnPreferenceChangeListener(this);
            } catch (SettingNotFoundException snfe) {
                Log.e(TAG, Settings.System.NOTIFICATION_LIGHT_ALWAYS_ON + " not found");
            }
            try {

            mNotificationCharging.setChecked(Settings.System.getInt(resolver,
                        Settings.System.NOTIFICATION_LIGHT_CHARGING) == 1);
                    Settings.System.NOTIFICATION_LIGHT_CHARGING, 1) == 1);
            mNotificationCharging.setOnPreferenceChangeListener(this);
            } catch (SettingNotFoundException snfe) {
                Log.e(TAG, Settings.System.NOTIFICATION_LIGHT_CHARGING + " not found");
            }

        } else {
            mSoundSettings.removePreference(mNotificationBlink);