This repository was archived by the owner on May 6, 2024. It is now read-only.
Commit 3667c60
authored
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-98971 parent 89d8d4e commit 3667c60
File tree
1 file changed
+0
-4
lines changed- OpenEdXMobile/src/main/java/org/edx/mobile/view
1 file changed
+0
-4
lines changedLines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | 522 | | |
527 | 523 | | |
528 | 524 | | |
| |||
0 commit comments