mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 12:24:26 +01:00
Check schedule on scheduling next poll
This commit is contained in:
@@ -459,10 +459,14 @@ public class ServiceUI extends IntentService {
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
if (reschedule)
|
||||
schedule(this, true);
|
||||
|
||||
ServiceSynchronize.eval(this, "poll");
|
||||
|
||||
if (reschedule) {
|
||||
long now = new Date().getTime();
|
||||
long[] schedule = ServiceSynchronize.getSchedule(this);
|
||||
boolean enabled = (schedule == null || (now >= schedule[0] && now < schedule[1]));
|
||||
schedule(this, enabled);
|
||||
}
|
||||
}
|
||||
|
||||
private void onBanner() {
|
||||
|
||||
Reference in New Issue
Block a user