mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Set boolean when toggling
This commit is contained in:
parent
d7eeef2c8a
commit
f1ca21678d
@ -272,6 +272,7 @@ public class SettingsFragment extends PreferenceFragmentCompat
|
|||||||
((SwitchPreference) preference).setChecked(!checked);
|
((SwitchPreference) preference).setChecked(!checked);
|
||||||
FingerprintHelper.showAuthDialog(requireActivity(), () -> {
|
FingerprintHelper.showAuthDialog(requireActivity(), () -> {
|
||||||
((SwitchPreference) preference).setChecked(checked);
|
((SwitchPreference) preference).setChecked(checked);
|
||||||
|
Data.suFingerprint = checked;
|
||||||
mm.mDB.setSettings(key, checked ? 1 : 0);
|
mm.mDB.setSettings(key, checked ? 1 : 0);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user