mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 19:11:49 +01:00
Fixed double page layout showing pages from other chapters
This commit is contained in:
parent
5ce97ee540
commit
8ac340eff0
@ -182,6 +182,9 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
|
||||
// Step 1: segment the pages and transition pages
|
||||
subItems.forEach {
|
||||
if (it is ReaderPage) {
|
||||
if (pagedItems.last().lastOrNull()?.chapter?.chapter?.id != it.chapter.chapter.id) {
|
||||
pagedItems.add(mutableListOf())
|
||||
}
|
||||
pagedItems.last().add(it)
|
||||
} else {
|
||||
otherItems.add(it)
|
||||
|
Loading…
Reference in New Issue
Block a user