mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
ebcf36fb4c
commit
78f8f16f65
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue