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

Fix leak in ActivityRecyclerPool when EpoxyRecyclerView is created with a ContextWrapper #906

Merged
merged 4 commits into from
Jan 10, 2020

Conversation

rashadsookram
Copy link
Contributor

Fixes #886 by unwrapping Contexts to find the LifecycleOwner / Activity as appropriate.

by handling the case where they are wrapped in a ContextWrapper
Activity is also a ContextWrapper, but we don't want to unwrap it.
Copy link
Contributor

@elihart elihart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@elihart elihart merged commit 963ef0f into airbnb:master Jan 10, 2020
@rishirajrandive
Copy link

@elihart This issue is causing a leak in our app as well. Any idea when will be the next version released with this fix?

@elihart elihart mentioned this pull request May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible memory leak in ActivityRecyclerPool when EpoxyRecyclerView is created with a ContextWrapper
3 participants