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