mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 12:51:16 +00:00
Removed redundant code, CheckBoxPreference automatically updates its value
This commit is contained in:
parent
1bd24e64e0
commit
4f98061325
1 changed files with 0 additions and 4 deletions
|
@ -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 a new issue