Keep schedule enabled after global disable

This commit is contained in:
M66B 2019-11-13 09:38:16 +01:00
parent e94239b9fc
commit 4429cd870c
1 changed files with 0 additions and 2 deletions

View File

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