Merge pull request #2483 from KryptKode/fix/move_position

fix: position returning to 0 after moving file
This commit is contained in:
Tibor Kaputa 2022-05-25 09:39:16 +02:00 committed by GitHub
commit 79b3870598
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1235,7 +1235,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
private fun refreshViewPager() { private fun refreshViewPager() {
if (config.getFolderSorting(mDirectory) and SORT_BY_RANDOM == 0) { if (config.getFolderSorting(mDirectory) and SORT_BY_RANDOM == 0) {
GetMediaAsynctask(applicationContext, mDirectory, false, false, mShowAll) { GetMediaAsynctask(applicationContext, mDirectory, false, false, mShowAll) {
gotMedia(it, refetchViewPagerPosition = true) gotMedia(it, refetchViewPagerPosition = false)
}.execute() }.execute()
} }
} }