diff --git a/app/src/main/java/com/beemdevelopment/aegis/ui/PreferencesFragment.java b/app/src/main/java/com/beemdevelopment/aegis/ui/PreferencesFragment.java index 53aab838af..bfb13efbb4 100644 --- a/app/src/main/java/com/beemdevelopment/aegis/ui/PreferencesFragment.java +++ b/app/src/main/java/com/beemdevelopment/aegis/ui/PreferencesFragment.java @@ -375,8 +375,8 @@ public boolean onPreferenceClick(Preference preference) { }); _pinKeyboardPreference = findPreference("pref_pin_keyboard"); - _pinKeyboardPreference.setOnPreferenceChangeListener((preference, o) -> { - if ((boolean)o) { + _pinKeyboardPreference.setOnPreferenceChangeListener((preference, newValue) -> { + if (!(boolean) newValue) { return true; }