Fix chapters list getting updated from wrong thread (fixes #4505)
Cette révision appartient à :
Parent
6d8c4fb8b1
révision
d912a42249
1 fichiers modifiés avec 4 ajouts et 1 suppressions
|
@ -72,6 +72,7 @@ import eu.kanade.tachiyomi.ui.recent.updates.UpdatesController
|
|||
import eu.kanade.tachiyomi.ui.webview.WebViewActivity
|
||||
import eu.kanade.tachiyomi.util.chapter.NoChaptersException
|
||||
import eu.kanade.tachiyomi.util.hasCustomCover
|
||||
import eu.kanade.tachiyomi.util.lang.launchUI
|
||||
import eu.kanade.tachiyomi.util.system.getResourceColor
|
||||
import eu.kanade.tachiyomi.util.system.toast
|
||||
import eu.kanade.tachiyomi.util.view.getCoordinates
|
||||
|
@ -988,7 +989,9 @@ class MangaController :
|
|||
chapters.forEach {
|
||||
chaptersAdapter?.updateItem(it)
|
||||
}
|
||||
chaptersAdapter?.notifyDataSetChanged()
|
||||
launchUI {
|
||||
chaptersAdapter?.notifyDataSetChanged()
|
||||
}
|
||||
}
|
||||
|
||||
fun onChaptersDeletedError(error: Throwable) {
|
||||
|
|
Référencer dans un nouveau ticket