-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi Daniel,
Should you not commit the remove transaction on destroyItem method overriden ?
I mean from :
mCurTransaction.remove(fragment);
to
mCurTransaction.remove(fragment).commit();
at line 124 of UpdatableFragmentPagerAdapter class.
I am having a problem that after onSave/Restore instance of the viewpager, some fragment remain on the memory and are reused even after I create a new adapter... So, every time I put the app on background and then on foreground, the number of the instances of the used fragment from getSupportFragmentManager().getFragments() increases with 2 (I use one OffscreenPageLimit).
Thanks!
Metadata
Metadata
Assignees
Labels
No labels