fix library update not working since you are calling an update view inside coroutine (#371)
This commit is contained in:
parent
bc93f885b7
commit
1dd9aa5e69
1 changed files with 6 additions and 10 deletions
|
@ -357,18 +357,14 @@ class LibraryUpdateService(
|
|||
Timber.e(exception)
|
||||
stopSelf(startId)
|
||||
}
|
||||
if (target == Target.CHAPTERS) {
|
||||
listener?.onUpdateManga(LibraryManga())
|
||||
}
|
||||
job = GlobalScope.launch(handler) {
|
||||
when (target) {
|
||||
Target.CHAPTERS -> {
|
||||
listener?.onUpdateManga(LibraryManga())
|
||||
updateChaptersJob(mangaToAdd)
|
||||
}
|
||||
Target.DETAILS -> {
|
||||
updateDetails(mangaToAdd)
|
||||
}
|
||||
else -> {
|
||||
updateTrackings(mangaToAdd)
|
||||
}
|
||||
Target.CHAPTERS ->updateChaptersJob(mangaToAdd)
|
||||
Target.DETAILS -> updateDetails(mangaToAdd)
|
||||
else -> updateTrackings(mangaToAdd)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue