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

remove Dispose call on ShellItemRenderer #27890

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pictos
Copy link
Contributor

@pictos pictos commented Feb 18, 2025

Description of Change

Remove the Dispose call that happens during OnDestroy lifecycle. If user has added a FragmentManager.FragmentLifecycleCallbacks the Fragment, that represents the ShellItem will be disposed too earlier causing in an app crash. Removing the Dipose call will make sure that the Fragment lives long enough to pass to all lifecycle methods.

Issues Fixed

Fixes #27889

@pictos pictos requested a review from a team as a code owner February 18, 2025 22:15
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Feb 18, 2025
@jsuarezruiz jsuarezruiz added the area-controls-shell Shell Navigation, Routes, Tabs, Flyout label Feb 19, 2025
@jfversluis jfversluis added the s/pr-needs-author-input PR needs an update from the author label Feb 19, 2025
Copy link
Contributor

Hi @pictos. We have added the "s/pr-needs-author-input" label to this issue, which indicates that we have an open question/action for you before we can take further action. This PRwill be closed automatically in 14 days if we do not hear back from you by then - please feel free to re-open it if you come back to this PR after that time.

@rmarinho rmarinho added this to the .NET 9 SR5 milestone Feb 19, 2025
@rmarinho
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/rebase

@github-actions github-actions bot force-pushed the pj/fix-shell-flyout-navigation branch from 9f57dc8 to 83520d9 Compare February 21, 2025 12:11
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@pictos
Copy link
Contributor Author

pictos commented Feb 21, 2025

can we remove the label needs-author-input?

@rmarinho rmarinho removed the s/pr-needs-author-input PR needs an update from the author label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution
Projects
Status: Approved
Development

Successfully merging this pull request may close these issues.

Shell flyout throws an exception on Android if there's a FragmentLifecycle.Callback
5 participants