mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-30 19:24:51 +01:00
properly show the media for Android 4.1
This commit is contained in:
parent
b9baa182cb
commit
4c4bbb0320
@ -204,7 +204,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
|
||||
private fun updatePagerItems() {
|
||||
val pagerAdapter = MyPagerAdapter(this, supportFragmentManager, mMedia)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && !isDestroyed) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1 || !isDestroyed) {
|
||||
view_pager?.apply {
|
||||
adapter = pagerAdapter
|
||||
currentItem = mPos
|
||||
|
Loading…
x
Reference in New Issue
Block a user