Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible memory leak when using Sticky Headers #568

Closed
davideas opened this issue Mar 16, 2018 · 0 comments
Closed

Possible memory leak when using Sticky Headers #568

davideas opened this issue Mar 16, 2018 · 0 comments

Comments

@davideas
Copy link
Owner

All view holders are cached when bound and un-cached when recycled, you can get an unmodifiable Set with all bound view holders with getAllBoundViewHolders(). This technique works correctly when RecyclerView wants to reuse the ViewHolder, but the sticky view holders, created out of the RecyclerView, are not recycled, so they remain un-cached in the Set and it might generate a memory leak with a long scroll usage.

Version affected: from RC1 to 5.0.1.
Solution has already been identified: Those sticky view holders won't be cached anymore.

I will publish a 5.0.2 as soon as I finalize the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant