Removed redundant code, CheckBoxPreference automatically updates its value

This commit is contained in:
Lode Hoste 2015-03-25 20:04:04 +01:00
parent 1bd24e64e0
commit 4f98061325
1 changed files with 0 additions and 4 deletions

View File

@ -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);