Set boolean when toggling

This commit is contained in:
topjohnwu 2018-09-29 02:02:41 -04:00
parent d7eeef2c8a
commit f1ca21678d

View File

@ -272,6 +272,7 @@ public class SettingsFragment extends PreferenceFragmentCompat
((SwitchPreference) preference).setChecked(!checked);
FingerprintHelper.showAuthDialog(requireActivity(), () -> {
((SwitchPreference) preference).setChecked(checked);
Data.suFingerprint = checked;
mm.mDB.setSettings(key, checked ? 1 : 0);
});
break;