From e6a7b4aa5f56207b86c7abe8b829058391ea094e Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Thu, 23 Dec 2021 14:46:01 +0100 Subject: [PATCH] ViewPager: use default caching strategy Change-Id: Ic09ca9f15320ca7e8ba5c1457e934d909055449e --- .../java/im/vector/app/features/home/HomeDetailFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt b/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt index c64cc19a87..08819376f2 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt @@ -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 {