1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-04 02:28:18 +00:00

Limit auto optimize account exemption

This commit is contained in:
M66B 2020-03-30 18:14:02 +02:00
parent 5e453492ab
commit 7a85c270b2

View file

@ -1591,7 +1591,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
db.endTransaction();
}
ServiceSynchronize.eval(ServiceSynchronize.this, "Optimize=" + reason);
} else if (account.poll_exempted) {
} else if (pollInterval <= 60 && account.poll_exempted) {
db.account().setAccountPollExempted(account.id, false);
ServiceSynchronize.eval(ServiceSynchronize.this, "Optimize=" + reason);
}