mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-15 12:35:53 +01:00
do not load 2 images per side, aint nobody got memory for that
This commit is contained in:
parent
e08f794d61
commit
a2f2e57b85
@ -162,7 +162,6 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
val pagerAdapter = MyPagerAdapter(this, supportFragmentManager, mMedia)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && !isDestroyed) {
|
||||
view_pager?.apply {
|
||||
offscreenPageLimit = 2
|
||||
adapter = pagerAdapter
|
||||
currentItem = mPos
|
||||
addOnPageChangeListener(this@ViewPagerActivity)
|
||||
|
Loading…
Reference in New Issue
Block a user