You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner. It is now read-only.
I noticed memory leak in my project when I was using MvxFragmentStatePagerAdapter2.
I tried all viewPager adapters and
all of them have same problem,
it seems MvxFragmentsPresenter doesn't recycle internal fragment views.
Steps to reproduce
1.Put some large byte array in PagerAdapter as private field
2.Start application, it can be your example
3.Navigate to ViewPager or ViewPagerState
4.Navigate to another fragment, e.g. Home
5.Repeat steps 3 and 4 several times
6.See in profile how will grow up memory allocation.
Expected behavior
ViewPager and ViewPagerAdapter to be destroyed with fragment view
Actual behavior
Someone has ref to ViewPager, so memory is grow up after each createView-destryoView cycle