mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
maybe some fixes to chapters showing blank after exiting the reader
hard to fix what i cant reproduce you know
This commit is contained in:
parent
68f3e6765d
commit
9dd0cac812
2 changed files with 5 additions and 1 deletions
|
@ -583,11 +583,14 @@ class MangaDetailsController :
|
|||
if (!returningFromReader) return
|
||||
returningFromReader = false
|
||||
runBlocking {
|
||||
val itemAnimator = binding.recycler.itemAnimator
|
||||
val chapters =
|
||||
withTimeoutOrNull(1000) { presenter.getChaptersNow() } ?: return@runBlocking
|
||||
binding.recycler.itemAnimator = null
|
||||
tabletAdapter?.notifyItemChanged(0)
|
||||
adapter?.setChapters(chapters)
|
||||
addMangaHeader()
|
||||
binding.recycler.itemAnimator = itemAnimator
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -312,7 +312,8 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
|
|||
val lastPage = subJoinedItems.lastOrNull()?.first as? ReaderPage
|
||||
if (lastPage == null || (
|
||||
if (it is ChapterTransition.Next) {
|
||||
it.from.chapter.id == lastPage.chapter.chapter.id } else true
|
||||
it.from.chapter.id == lastPage.chapter.chapter.id
|
||||
} else true
|
||||
)
|
||||
) {
|
||||
subJoinedItems.add(Pair(it, null))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue