mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 22:40:32 +00:00
Prevent crash
This commit is contained in:
parent
ec5ecfd41c
commit
484cb6bb3c
1 changed files with 5 additions and 1 deletions
|
@ -219,7 +219,11 @@ public class ApplicationEx extends Application
|
|||
}
|
||||
|
||||
ServiceSynchronize.scheduleWatchdog(this);
|
||||
WorkManager.getInstance(this).cancelUniqueWork("WorkerWatchdog");
|
||||
try {
|
||||
WorkManager.getInstance(this).cancelUniqueWork("WorkerWatchdog");
|
||||
} catch (IllegalStateException ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
WorkerAutoUpdate.init(this);
|
||||
WorkerCleanup.init(this);
|
||||
|
|
Loading…
Reference in a new issue