Add usage of WorkManager to enqueue FullScanWorker in InitializerService
- Instanciate Constraint for the workRequest (Battery not low, and network available) - Instanciate PeriodicWorkRequest to start FullScanWorker job every 31 minutes with 5 minutes as flex time - Enqueue the workRequest into WorkManager - Add the generic Generic work Tag into the work request - Comment "JobUtils.scheduleScannerJob()" to prevent JobScheduler to run ScannerJob periodically
Loading
Please register or sign in to comment