mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix chapter transistion in the wrong place in double page layout
only occurs if double page is on, always show transitions is off, you go to the next chapter then go back
This commit is contained in:
parent
10a8c9167b
commit
68f3e6765d
1 changed files with 9 additions and 2 deletions
|
@ -309,8 +309,15 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
otherItems.getOrNull(pagedIndex)?.let {
|
otherItems.getOrNull(pagedIndex)?.let {
|
||||||
subJoinedItems.add(Pair(it, null))
|
val lastPage = subJoinedItems.lastOrNull()?.first as? ReaderPage
|
||||||
pagedIndex++
|
if (lastPage == null || (
|
||||||
|
if (it is ChapterTransition.Next) {
|
||||||
|
it.from.chapter.id == lastPage.chapter.chapter.id } else true
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
subJoinedItems.add(Pair(it, null))
|
||||||
|
pagedIndex++
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (viewer is R2LPagerViewer) {
|
if (viewer is R2LPagerViewer) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue