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

interact with nested fragments only thru child fragment manager #6292

Closed
manoldonev opened this issue Sep 21, 2018 · 1 comment · Fixed by #6293
Closed

interact with nested fragments only thru child fragment manager #6292

manoldonev opened this issue Sep 21, 2018 · 1 comment · Fixed by #6293
Assignees

Comments

@manoldonev
Copy link
Contributor

When interacting with nested fragments instead of using getSupportFragmentManager we must always use getChildFragmentManager instead. Failure to do so causes obscure issues on app suspend / resume (inner fragment unloads on app resume) due to the fact that inner fragments cannot be removed properly as their parent fragment has already been removed. Moreover, it seems that when child fragment manager is used Android is smart enough to remove child fragments automatically when parent fragment is removed.

@lock
Copy link

lock bot commented Oct 11, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Oct 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant