From e4aff60852d9564360b0a1f3be975bd486ed5b2c Mon Sep 17 00:00:00 2001 From: Naveen Date: Tue, 5 Jul 2022 20:14:56 +0530 Subject: [PATCH] Fix typo error --- .../gallery/pro/activities/ViewPagerActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt index 234c3bf94..6b477ebeb 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt @@ -1229,8 +1229,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View } private fun refreshViewPager(refetchPosition: Boolean = false) { - val isSortingRandom = config.getFolderSorting(mDirectory) and SORT_BY_RANDOM == 0 - if (!isSortingRandom || isExternalIntent()) { + val isNotRandomSorting = config.getFolderSorting(mDirectory) and SORT_BY_RANDOM == 0 + if (isNotRandomSorting || isExternalIntent()) { GetMediaAsynctask(applicationContext, mDirectory, isPickImage = false, isPickVideo = false, showAll = mShowAll) { gotMedia(it, refetchViewPagerPosition = refetchPosition) }.execute()