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