mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-16 03:08:58 +03:00
ViewPager: use default caching strategy
Change-Id: Ic09ca9f15320ca7e8ba5c1457e934d909055449e
This commit is contained in:
parent
197bf860c3
commit
e6a7b4aa5f
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue