Fixed polling

This commit is contained in:
M66B
2020-03-21 09:39:46 +01:00
parent 0451d7f176
commit 0859a88ee4
3 changed files with 11 additions and 10 deletions

View File

@@ -136,7 +136,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("enabled", checked).apply();
ServiceSynchronize.eval(getContext(), "enabled=" + checked);
ServiceSynchronize.reschedule(getContext());
}
});