mirror of https://github.com/M66B/FairEmail.git
Keep schedule enabled after global disable
This commit is contained in:
parent
e94239b9fc
commit
4429cd870c
|
@ -106,8 +106,6 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||||
prefs.edit().putBoolean("enabled", checked).apply();
|
prefs.edit().putBoolean("enabled", checked).apply();
|
||||||
if (!checked)
|
|
||||||
swSchedule.setChecked(false);
|
|
||||||
ServiceSynchronize.reload(getContext(), true, "enabled=" + checked);
|
ServiceSynchronize.reload(getContext(), true, "enabled=" + checked);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue