Revert "Switch to alarm manager for more control over polling"

This reverts commit 7658047300.
This commit is contained in:
M66B
2020-01-10 12:08:14 +01:00
parent 7658047300
commit 9306d4e1e9
6 changed files with 150 additions and 75 deletions

View File

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