mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
refetch viewpager item position if it is -1 too
This commit is contained in:
@@ -1192,7 +1192,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
mPrevHashcode = media.hashCode()
|
||||
mMediaFiles = media
|
||||
|
||||
if (refetchViewPagerPosition) {
|
||||
if (refetchViewPagerPosition || mPos == -1) {
|
||||
mPos = getPositionInList(media)
|
||||
if (mPos == -1) {
|
||||
Math.min(mPos, mMediaFiles.size - 1)
|
||||
|
Reference in New Issue
Block a user