Removed redundant code, CheckBoxPreference automatically updates its value
This commit is contained in:
parent
1bd24e64e0
commit
4f98061325
|
@ -225,10 +225,6 @@ public class DeviceSettingsFragment extends PreferenceFragment implements
|
|||
EditTextPreference pref = (EditTextPreference) preference;
|
||||
pref.setSummary((String) o);
|
||||
}
|
||||
if (preference instanceof CheckBoxPreference) {
|
||||
CheckBoxPreference pref = (CheckBoxPreference) preference;
|
||||
pref.setChecked((Boolean) o);
|
||||
}
|
||||
if (preference instanceof ListPreference) {
|
||||
ListPreference pref = (ListPreference) preference;
|
||||
pref.setSummary((String) o);
|
||||
|
|
Loading…
Reference in New Issue