do not refresh media at viewpager with random sorting
This commit is contained in:
parent
0a6c553cc7
commit
f773ab9c1c
1 changed files with 5 additions and 3 deletions
|
@ -982,9 +982,11 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun refreshViewPager() {
|
private fun refreshViewPager() {
|
||||||
GetMediaAsynctask(applicationContext, mDirectory, false, false, mShowAll) {
|
if (config.getFileSorting(mDirectory) and SORT_BY_RANDOM == 0) {
|
||||||
gotMedia(it)
|
GetMediaAsynctask(applicationContext, mDirectory, false, false, mShowAll) {
|
||||||
}.execute()
|
gotMedia(it)
|
||||||
|
}.execute()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun gotMedia(thumbnailItems: ArrayList<ThumbnailItem>) {
|
private fun gotMedia(thumbnailItems: ArrayList<ThumbnailItem>) {
|
||||||
|
|
Loading…
Reference in a new issue