From c33443ed4ecfc57a4bab476677393b23010a01a8 Mon Sep 17 00:00:00 2001 From: darthpaul Date: Tue, 24 May 2022 23:42:14 +0100 Subject: [PATCH] fix: position returning to 0 after moving file --- .../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 780ce879b..55837ed53 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 @@ -1232,7 +1232,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 = true) + gotMedia(it, refetchViewPagerPosition = false) }.execute() } }