You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BottomNavigation]: crash when navigating without transition animation #7481
Describe the bug
App crashes in a scenario with frame -> bottom navigation -> frame (nested fragments) after you navigate forward from the root level frame and try to go back. Note the error occurs only if navigation is performed with animated=false (no transition).
To Reproduce
Using e2e/nested-frame-navigation:
Go to Page w/ BOTTOM NAVIGATION
Navigate to some page (no transition)
Go back -- app crashes with the following exception:
An uncaught Exception occurred on "main" thread.
The specified child already has a parent. You must call removeView() on the child's parent first.
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
Expected behavior
App should not crash.
Additional context
The same problem would occur if you tried to use three levels of Frame nesting because BottomNavigation behaves essentially as a Frame with respect to Android fragment lifecycle.
changed the title [-][BottomNavigation][Android]: crash when navigating without transition animation[/-][+][BottomNavigation]: crash when navigating without transition animation[/+]on Jul 9, 2019
Activity
[-][BottomNavigation][Android]: crash when navigating without transition animation[/-][+][BottomNavigation]: crash when navigating without transition animation[/+]