From 7a85c270b2954ce3531fd1c811ef922c6e63834f Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 30 Mar 2020 18:14:02 +0200 Subject: [PATCH] Limit auto optimize account exemption --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index c95ff21a9f..41df199bba 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -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); }