fix format for last commit

This commit is contained in:
Jays2Kings 2021-07-04 17:07:46 -04:00
parent d49bb4dfc8
commit acd6d5cd90

View File

@ -183,7 +183,8 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
subItems.forEach {
if (it is ReaderPage) {
if (pagedItems.last().lastOrNull() != null &&
pagedItems.last().last()?.chapter?.chapter?.id != it.chapter.chapter.id) {
pagedItems.last().last()?.chapter?.chapter?.id != it.chapter.chapter.id
) {
pagedItems.add(mutableListOf())
}
pagedItems.last().add(it)