mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-27 23:45:29 +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)
|
Timber.e(exception)
|
||||||
stopSelf(startId)
|
stopSelf(startId)
|
||||||
}
|
}
|
||||||
|
if (target == Target.CHAPTERS) {
|
||||||
|
listener?.onUpdateManga(LibraryManga())
|
||||||
|
}
|
||||||
job = GlobalScope.launch(handler) {
|
job = GlobalScope.launch(handler) {
|
||||||
when (target) {
|
when (target) {
|
||||||
Target.CHAPTERS -> {
|
Target.CHAPTERS ->updateChaptersJob(mangaToAdd)
|
||||||
listener?.onUpdateManga(LibraryManga())
|
Target.DETAILS -> updateDetails(mangaToAdd)
|
||||||
updateChaptersJob(mangaToAdd)
|
else -> updateTrackings(mangaToAdd)
|
||||||
}
|
|
||||||
Target.DETAILS -> {
|
|
||||||
updateDetails(mangaToAdd)
|
|
||||||
}
|
|
||||||
else -> {
|
|
||||||
updateTrackings(mangaToAdd)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user