Fixed reload on entering advanced settings

This commit is contained in:
M66B 2019-01-16 18:34:06 +00:00
parent d97a9667f2
commit f9f8f3cc4c
1 changed files with 2 additions and 2 deletions

View File

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