Closed ln-12 closed 1 year ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
The issue is not yet solved. Could you maybe have a look at it @jbw0033 or @ianhanniballake?
Hi, thanks for your patience. With accompanist navigation-animation
migrated back to Androidx Navigation library, I have filed this bug in Androidx Navigation issuetracker. Moving forward, you can track the bug here.
Description This issue is related to #1411. I noticed that the animation is broken when navigating between two NavGraphs while using the NavOption
popUpTo(0) { inclusive = true }
. Usually, this is no problem asval zIndex = composeNavigator.backStack.value.size.toFloat()
in AnimatedNavHost returns increasing indices for subsequent screens. However, when popping all back stack entries, the index for the next screen is reset to 1.0 at some point resulting in the broken animation. In the video, the last transition is broken:https://user-images.githubusercontent.com/36760115/221801569-9bb52af2-53aa-483e-98ef-94e2436b8ae3.mp4
Steps to reproduce
Expected behavior I would expect the see the correct z ordering / animation even if I am popping the back stack entries.
Additional context In the example I am using the lastest version
implementation "com.google.accompanist:accompanist-navigation-animation:0.29.1-alpha"
of accompanist.