|
|
@ -17,8 +17,11 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
|
|
|
|
Worker(context, workerParams) {
|
|
|
|
Worker(context, workerParams) {
|
|
|
|
|
|
|
|
|
|
|
|
override fun doWork(): Result {
|
|
|
|
override fun doWork(): Result {
|
|
|
|
LibraryUpdateService.start(context)
|
|
|
|
return if (LibraryUpdateService.start(context)) {
|
|
|
|
return Result.success()
|
|
|
|
Result.success()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Result.failure()
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
companion object {
|
|
|
|
companion object {
|
|
|
|