Fix double page shifting when there's 2 full pages

I tried to fix it all in one pr, but these things happen
This commit is contained in:
Jays2Kings 2021-04-07 04:16:59 -04:00
parent 212386f3cc
commit 42cecf0bb2

View File

@ -209,7 +209,7 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
( (
if (index > -1) ( if (index > -1) (
items.subList(0, index) items.subList(0, index)
.indexOfFirst { it?.fullPage == true } .indexOfLast { it?.fullPage == true }
) else -1 ) else -1
) )
) )