revert: Revert if check

This probably also check for null as "false" intially, unclear
This commit is contained in:
Ahmad Ansori Palembani 2024-06-16 09:38:13 +07:00
parent 24ce2683d4
commit 9d942aa2a6
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -271,7 +271,7 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
)
// Add a shifted page to the first place there isnt a full page
(fullPageBeforeIndex until items.size).forEach {
if (items[it]?.fullPage == false) {
if (items[it]?.fullPage != true) {
items[it]?.shiftedPage = true
return@loop
}