mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 06:17:59 +01:00
do not load 2 images per side, aint nobody got memory for that
This commit is contained in:
parent
e08f794d61
commit
a2f2e57b85
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue