mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 05:15:10 +01:00
Fix crash in maga details
This commit is contained in:
parent
3910d23899
commit
87ab6fa8de
@ -517,6 +517,7 @@ class MangaDetailsController : BaseController,
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun updateChapters(chapters: List<ChapterItem>) {
|
fun updateChapters(chapters: List<ChapterItem>) {
|
||||||
|
view ?: return
|
||||||
swipe_refresh?.isRefreshing = presenter.isLoading
|
swipe_refresh?.isRefreshing = presenter.isLoading
|
||||||
if (presenter.chapters.isEmpty() && fromCatalogue && !presenter.hasRequested) {
|
if (presenter.chapters.isEmpty() && fromCatalogue && !presenter.hasRequested) {
|
||||||
launchUI { swipe_refresh?.isRefreshing = true }
|
launchUI { swipe_refresh?.isRefreshing = true }
|
||||||
@ -524,7 +525,7 @@ class MangaDetailsController : BaseController,
|
|||||||
}
|
}
|
||||||
adapter?.setChapters(chapters)
|
adapter?.setChapters(chapters)
|
||||||
addMangaHeader()
|
addMangaHeader()
|
||||||
colorToolbar(recycler.canScrollVertically(-1))
|
colorToolbar(recycler?.canScrollVertically(-1) == true)
|
||||||
activity?.invalidateOptionsMenu()
|
activity?.invalidateOptionsMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user