Switch to alarm manager for more control over polling

This commit is contained in:
M66B
2020-01-10 11:23:42 +01:00
parent 821f713728
commit 7658047300
6 changed files with 75 additions and 150 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());
}
});