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

Commit d348c8d6 authored by Sam Mortimer's avatar Sam Mortimer
Browse files

Settings: fix led pulsespeedoff disable behaviour

Keep led pulsespeedoff disabled if pulsespeedon is
disabled.  This ensures that pulsespeedoff stays
disabled if onOffChangeable was set to false.  Fixes
problem where charged led pulsespeed off looks to
be configurable in the ui and thereby creating user
confusion.

Change-Id: I6ac7f630544bf719b39e1ddcab435322975430c8
parent e36fceab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ public class LightSettingsDialog extends AlertDialog implements

        @Override
        public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
            mPulseSpeedOff.setEnabled(getPulseSpeedOn() != 1);
            mPulseSpeedOff.setEnabled(mPulseSpeedOn.isEnabled() && getPulseSpeedOn() != 1);
        }

        @Override