mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 04:29:18 +01:00
fix for that last commit
This commit is contained in:
parent
8ac340eff0
commit
d49bb4dfc8
@ -182,7 +182,8 @@ 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) {
|
||||
if (pagedItems.last().lastOrNull() != null &&
|
||||
pagedItems.last().last()?.chapter?.chapter?.id != it.chapter.chapter.id) {
|
||||
pagedItems.add(mutableListOf())
|
||||
}
|
||||
pagedItems.last().add(it)
|
||||
|
Loading…
Reference in New Issue
Block a user