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

Commit 70275d28 authored by Roman Birg's avatar Roman Birg
Browse files

Settings: reset root option selection as necessary



When root is disabled and trying to enable root, a warning dialog pops
up. If the user selects cancel, we need to reset the property to the
actual selection since it hasn't changed.

Change-Id: I6fa1564d86b8473090bbad1b65544481528f0946
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 23612493
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1988,6 +1988,9 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
        } else if (dialog == mUpdateRecoveryDialog) {
            updateUpdateRecoveryOptions();
            mUpdateRecoveryDialog = null;
        } else if (dialog == mRootDialog) {
            updateRootAccessOptions();
            mRootDialog = null;
        }
    }