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 ...@@ -418,7 +418,7 @@ public class SettingsFragment extends PreferenceFragmentCompat implements Search
@Override @Override
public boolean onPreferenceChange(Preference preference, Object newValue) { public boolean onPreferenceChange(Preference preference, Object newValue) {
if(newValue.toString().equals("")){ if(newValue.toString().equals("")){
findPreference("setting_pin_enabled").setEnabled(false); ((CheckBoxPreference)findPreference("setting_pin_enabled")).setChecked(false);
}else { }else {
awaitingPinChange = false; awaitingPinChange = false;
preferences.put("pin_value",String.valueOf(newValue)); 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