Glimpse: Preload 2 pages on either side of current page
Better user experience while scrolling Change-Id: Ic707c2f37a4cef1954be604e990e3bcab7778f4c
This commit is contained in:
parent
de55efce60
commit
020ea47a06
|
@ -294,6 +294,7 @@ class MediaViewerFragment : Fragment(
|
|||
}
|
||||
|
||||
viewPager.adapter = mediaViewerAdapter
|
||||
viewPager.offscreenPageLimit = 2
|
||||
viewPager.registerOnPageChangeCallback(onPageChangeCallback)
|
||||
|
||||
shareButton.setOnClickListener {
|
||||
|
|
Loading…
Reference in New Issue