ViewPager: use default caching strategy

Change-Id: Ic09ca9f15320ca7e8ba5c1457e934d909055449e
This commit is contained in:
SpiritCroc 2021-12-23 14:46:01 +01:00
parent 197bf860c3
commit e6a7b4aa5f
1 changed files with 2 additions and 1 deletions

View File

@ -567,7 +567,8 @@ class HomeDetailFragment @Inject constructor(
initialPageSelected = false initialPageSelected = false
pendingSpaceIds.clear() 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) { val adapter = object: FragmentStateAdapter(this@HomeDetailFragment) {
override fun getItemCount(): Int { override fun getItemCount(): Int {