-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(android): crash on changing activity context after animated navigation Fixes #5674 #5700
Conversation
…ation with transition
if (this._currentEntry && this._currentEntry.fragment) { | ||
const manager: android.app.FragmentManager = this._getFragmentManager(); | ||
const transaction = manager.beginTransaction(); | ||
private disposeCurrentFragment(): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the disposeCurrentFragment()
call because of this: [quoting @MartoYankov] in Tabs-Frames-Pages scenario all of the frames' fragments are restored before the tabs' fragments are recreated and they try to load their pages before they have been selected. The chosen solution was to remove the frame fragment on unloading the frame. We want Android to recreate the tab fragment that will load its frame (that creates a new fragment for the page).
tests for api level 21 & 22 executed here: #5712 |
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. |
Fixes #5674
Fixes Android Lollipop (API Level 21 and 22) crash on changing activity context (e.g. starting external activity with
utils.openurl(...)
call or minimizing app) after navigation with animated transition has been executed within the app.