From fda1b5eeba39665c7a2d9119d5c0e946afec51dd Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 25 May 2022 09:48:47 +0200 Subject: [PATCH] removing some redundant refreshing --- .../gallery/pro/activities/ViewPagerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 245870298..d76500082 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 @@ -1235,7 +1235,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View private fun refreshViewPager() { if (config.getFolderSorting(mDirectory) and SORT_BY_RANDOM == 0) { GetMediaAsynctask(applicationContext, mDirectory, false, false, mShowAll) { - gotMedia(it, refetchViewPagerPosition = false) + gotMedia(it) }.execute() } }