mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Prevent crash
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user