mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 15:46:34 +02:00
Revised init/start/stop/reload
This commit is contained in:
@@ -61,7 +61,10 @@ public class FragmentOptions extends FragmentEx {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("enabled", checked).apply();
|
||||
ServiceSynchronize.reload(getContext(), "enabled");
|
||||
if (checked)
|
||||
ServiceSynchronize.start(getContext());
|
||||
else
|
||||
ServiceSynchronize.stop(getContext());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user