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

Retain Fragment instance on Configuration Change #54

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

Conversation

chrisriesgo
Copy link

When rotating the device, an exception is thrown because there is no default constructor on the Fragment.

I added a default constructor which alleviated one issue, but exposed another. A null reference exception was being thrown when the the attached fragments attempted to render themselves. The Func that was initially passed in as a constructor argument was null upon Configuration Change.

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.

None yet

1 participant