Prevent crash

This commit is contained in:
M66B 2023-05-23 08:05:45 +02:00
parent ebcf36fb4c
commit 78f8f16f65
1 changed files with 5 additions and 5 deletions

View File

@ -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));