xkcd-Android icon indicating copy to clipboard operation
xkcd-Android copied to clipboard

Rotation will cause stale fragments in ChildFragmentManager

Open zjn0505 opened this issue 5 years ago • 3 comments

Open app, rotate several times. Fragments added in ChildFragmentManager will be 3 * rotation. Could be leak, also too large savedInstance issue.

zjn0505 avatar Jan 02 '20 02:01 zjn0505

https://stackoverflow.com/a/40245070/5292852

zjn0505 avatar Jan 02 '20 14:01 zjn0505

Maybe check an example, see how fm behave.

zjn0505 avatar Jan 03 '20 04:01 zjn0505

Checked ViewPager2 1.0.0, the scroll is not natural, and buggy on What if nested scroll.

zjn0505 avatar Jan 03 '20 16:01 zjn0505