This repository has been archived by the owner on May 6, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: TransactionTooLarge Exception caused by FragmentStateAdapter (#1850
) Previously, the FragmentStateAdapter was saving the state of the course dashboard view pager tabs upon navigation to the NavigationActivity. This behaviour resulted in a TransactionTooLarge Exception when attempting to save the state in the bundle. To mitigate this issue, we've made adjustments to the caching mechanism of the ViewPager2. Specifically, we've set the OffPage limit of the viewPager to ViewPager2.OFFSCREEN_PAGE_LIMIT_DEFAULT, which leverages the default caching mechanism of RecyclerView. This modification ensures efficient state handling and resolves the encountered exception. Fixes: LEARNER-9897
- Loading branch information