Prevent crash

pull/194/merge
M66B 3 years ago
parent ec5ecfd41c
commit 484cb6bb3c

@ -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…
Cancel
Save