From 78f8f16f65195048b96352ea4d224b22d63c3696 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 23 May 2023 08:05:45 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/ApplicationEx.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java index 62351287d8..4cb62c6423 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -251,14 +251,14 @@ public class ApplicationEx extends Application // Legacy try { WorkManager.getInstance(this).cancelUniqueWork("WorkerWatchdog"); + + WorkerAutoUpdate.init(this); + WorkerCleanup.init(this); + WorkerDailyRules.init(this); + WorkerSync.init(this); } catch (IllegalStateException ex) { Log.e(ex); } - - WorkerAutoUpdate.init(this); - WorkerCleanup.init(this); - WorkerDailyRules.init(this); - WorkerSync.init(this); } registerReceiver(onScreenOff, new IntentFilter(Intent.ACTION_SCREEN_OFF));