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

Causes Memory Leak when used in Fragment #69

Open
iampjeetsingh opened this issue May 28, 2023 · 0 comments
Open

Causes Memory Leak when used in Fragment #69

iampjeetsingh opened this issue May 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@iampjeetsingh
Copy link

I have single activity layout architecture in my project. So, I use fragments for everything.

The problem with fragments is that their views get destroyed when onViewDestroyed is called. Let's say I go to next screen, then the previous Fragment's views will get destroyed. Therefore we need to clear the reference to the view we may be holding to prevents leaks.

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants