Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e66b6083 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

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
parent 50a21cb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment