Fixed polling without schedule

This commit is contained in:
M66B
2020-01-10 12:12:14 +01:00
parent 9306d4e1e9
commit 9d3eb2d270
2 changed files with 14 additions and 13 deletions

View File

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