1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 04:41:16 +00:00

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

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