Fixed reload on entering advanced settings

pull/147/head
M66B 6 years ago
parent d97a9667f2
commit f9f8f3cc4c

@ -145,6 +145,8 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
setOptions();
swEnabled.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
@ -337,8 +339,6 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
}
});
setOptions();
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
return view;

Loading…
Cancel
Save