Commit 211a074e authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Do not disable the preference, rather uncheck it

parent 0839c49d
......@@ -418,7 +418,7 @@ public class SettingsFragment extends PreferenceFragmentCompat implements Search
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
if(newValue.toString().equals("")){
findPreference("setting_pin_enabled").setEnabled(false);
((CheckBoxPreference)findPreference("setting_pin_enabled")).setChecked(false);
}else {
awaitingPinChange = false;
preferences.put("pin_value",String.valueOf(newValue));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment