mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-17 22:08:00 +01:00
properly show the media for Android 4.1
This commit is contained in:
parent
b9baa182cb
commit
4c4bbb0320
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue