Skip to content

fix(android): IllegalStateException with tabview&nested frames #6495

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

Merged
merged 3 commits into from
Nov 5, 2018

Conversation

manoldonev
Copy link
Contributor

@manoldonev manoldonev commented Nov 2, 2018

Fixes: #6490
Related to: #6339
Related to: #6421

This fix was originally applied with #6339 but was later reworked with #6421 (basically the part in frame.android.ts where disposing the fragments is performed after super.unloaded(...) logic).

The original fix did not work properly when called in onDestroyView(...) as it essentially removed the fragment view too early hence breaking exit transition. I actually tested onDestroy(...) then as well but due to a different bug addressed with #6421 and #6489 (essentially we need to cache and restore animators because of the simulated first navigation) onDestroyView(...) and onDestroy(...) were called at the same time (now onDestroy(...) is called after the actual exit transition is finished which means we can use it to detach the native view from its parent).

@manoldonev manoldonev self-assigned this Nov 2, 2018
@ghost ghost added the in progress label Nov 2, 2018
@manoldonev
Copy link
Contributor Author

test --ignore uitests_android ngapps_android api19 api23 api28

@manoldonev
Copy link
Contributor Author

test --ignore uitests_android ngapps_android api19 api23 api28

@manoldonev manoldonev force-pushed the mdonev/child-already-has-a-parent-fix branch from 402414f to cf59ca9 Compare November 5, 2018 08:32
@SvetoslavTsenov
Copy link
Contributor

test ngapps#svetoslavtsenov/enable-naviagtion-tests-android build_nativescript_angular#svetoslavtsenov/enable-naviagtion-tests-android

@SvetoslavTsenov
Copy link
Contributor

test ngapps#svetoslavtsenov/enable-naviagtion-tests-android build_nativescript-angular#svetoslavtsenov/enable-naviagtion-tests-android

@manoldonev manoldonev merged commit 41ba93d into master Nov 5, 2018
@manoldonev manoldonev deleted the mdonev/child-already-has-a-parent-fix branch November 5, 2018 14:18
@ghost ghost removed the in progress label Nov 5, 2018
@lock
Copy link

lock bot commented Nov 6, 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 Nov 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IllegalStateException in a tabview scenario with nested frames
4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy