mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:55:11 +01:00
fix library update not working since you are calling an update view inside coroutine (#371)
This commit is contained in:
parent
bc93f885b7
commit
1dd9aa5e69
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user