mirror of https://github.com/M66B/FairEmail.git
Fixed reload on entering advanced settings
This commit is contained in:
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…
Reference in New Issue