This commit is contained in:
M66B
2019-05-06 15:30:30 +02:00
parent fdcb6c241e
commit a3588ac89c
6 changed files with 12 additions and 6 deletions

View File

@@ -71,6 +71,8 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
spDownload = view.findViewById(R.id.spDownload);
swRoaming = view.findViewById(R.id.swRoaming);
setOptions();
// Wire controls
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
@@ -104,7 +106,6 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
}
});
setOptions();
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
return view;