From 82b565b826cd9c41c53380f3daf625310fb999b5 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 16 Jun 2021 11:06:56 +0200 Subject: [PATCH] Debug watchdog --- 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 c4c9bfe069..b7ef5043e6 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -129,7 +129,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences private static final int ACCOUNT_ERROR_AFTER_POLL = 4; // times private static final int FAST_FAIL_THRESHOLD = 75; // percent private static final int FETCH_YIELD_DURATION = 50; // milliseconds - private static final long WATCHDOG_INTERVAL = 60 * 60 * 1000L; // milliseconds + private static final long WATCHDOG_INTERVAL = (BuildConfig.DEBUG ? 15 : 60) * 60 * 1000L; // milliseconds private static final String ACTION_NEW_MESSAGE_COUNT = BuildConfig.APPLICATION_ID + ".NEW_MESSAGE_COUNT";