|
|
@ -251,14 +251,14 @@ public class ApplicationEx extends Application
|
|
|
|
// Legacy
|
|
|
|
// Legacy
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
WorkManager.getInstance(this).cancelUniqueWork("WorkerWatchdog");
|
|
|
|
WorkManager.getInstance(this).cancelUniqueWork("WorkerWatchdog");
|
|
|
|
} catch (IllegalStateException ex) {
|
|
|
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WorkerAutoUpdate.init(this);
|
|
|
|
WorkerAutoUpdate.init(this);
|
|
|
|
WorkerCleanup.init(this);
|
|
|
|
WorkerCleanup.init(this);
|
|
|
|
WorkerDailyRules.init(this);
|
|
|
|
WorkerDailyRules.init(this);
|
|
|
|
WorkerSync.init(this);
|
|
|
|
WorkerSync.init(this);
|
|
|
|
|
|
|
|
} catch (IllegalStateException ex) {
|
|
|
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
registerReceiver(onScreenOff, new IntentFilter(Intent.ACTION_SCREEN_OFF));
|
|
|
|
registerReceiver(onScreenOff, new IntentFilter(Intent.ACTION_SCREEN_OFF));
|
|
|
|