Skip to content

Conversation

@vakrilov
Copy link
Contributor

Same as #8166 but based on release branch.

PR Checklist

What is the current behavior?

Fragment is always removed from the fragment manager in the Frame.disposeCurrentFragment() method. Different versions of androidX behave differently if you try to remove a fragment from a fragment manager.

What is the new behavior?

Added a check if the current fragment is actually contained in the fragment manager returned by the _getFragmentManager()

Fixes #8037

@cla-bot cla-bot bot added the cla: yes label Dec 16, 2019
@vakrilov vakrilov changed the base branch from master to release December 16, 2019 15:13
@vakrilov vakrilov changed the title fix: check is disposed fragment is in the FragmentManager fix(android): check is disposed fragment is in the FragmentManager Dec 16, 2019
@vakrilov vakrilov merged commit 4b00376 into release Dec 17, 2019
@vakrilov vakrilov deleted the dispose-fragment-crash-release branch December 17, 2019 10:04
vakrilov pushed a commit that referenced this pull request Jan 27, 2020
* fix the crash

* chore: update MaterialComponents pod (#8176)

* chore: update MaterialComponents pod

* chore: remove copy of pod file in build script

* chore: cut the 6.3.0 release (#8174)

* hore: cut the 6.3.1 release

* fix: handle fake attach after FragMgr is destroyed (#8200)

* fix: check is disposed fragment is in the FragmentManager (#8201)

* release: cut the 6.3.2 release

Co-authored-by: hamidbsd <50081218+hamidbsd@users.noreply.github.com>
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
vtrifonov added a commit that referenced this pull request Feb 26, 2020
* fix the crash

* chore: update MaterialComponents pod (#8176)

* chore: update MaterialComponents pod

* chore: remove copy of pod file in build script

* chore: cut the 6.3.0 release (#8174)

* hore: cut the 6.3.1 release

* fix: handle fake attach after FragMgr is destroyed (#8200)

* fix: check is disposed fragment is in the FragmentManager (#8201)

* release: cut the 6.3.2 release

* release: cut the 6.4.0 release

* chore(build): always use local typescript

* fix: flipLeft and flipRight on Android (#8307)

* fix(android): tap-trip-item title disappearing

* fix(andoid): crash when setting font on tab-item with no image

* fix(build): Add platforms/android to NPM package (#8312)

Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com>

* release: cut the 6.4.1 release

* chore: bump tns-core-modules-widgets version (#8352)

Co-authored-by: hamidbsd <50081218+hamidbsd@users.noreply.github.com>
Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
Co-authored-by: Nick Iliev <nikolay.iliev@telerik.com>
Co-authored-by: Martin Bektchiev <martin.bektchiev@progress.com>
Co-authored-by: Rosen Vladimirov <rosen-vladimirov@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants