ViewPager: use default caching strategy
Change-Id: Ic09ca9f15320ca7e8ba5c1457e934d909055449e
This commit is contained in:
parent
197bf860c3
commit
e6a7b4aa5f
|
@ -567,7 +567,8 @@ class HomeDetailFragment @Inject constructor(
|
|||
initialPageSelected = false
|
||||
pendingSpaceIds.clear()
|
||||
|
||||
views.roomListContainerPager.offscreenPageLimit = 2
|
||||
// OFFSCREEN_PAGE_LIMIT_DEFAULT: default recyclerview caching mechanism instead of explicit fixed prefetching
|
||||
//views.roomListContainerPager.offscreenPageLimit = 2
|
||||
|
||||
val adapter = object: FragmentStateAdapter(this@HomeDetailFragment) {
|
||||
override fun getItemCount(): Int {
|
||||
|
|
Loading…
Reference in New Issue