removing some redundant refreshing

This commit is contained in:
tibbi 2022-05-25 09:48:47 +02:00
parent 79b3870598
commit fda1b5eeba

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 = false) gotMedia(it)
}.execute() }.execute()
} }
} }