Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Version used: 2.4.1
Devices/Android versions reproduced on: Emulator on Android SDK 30
I have a use case where I have a fragment from which I want to open another navigation graph containing multiple fragments typically to do a task with multiple steps, and when I reach the last one I want to go back to the previous fragment outside this task graph without recreating it. Opening the first step fragment uses an animation that makes it enter from bottom to top, then on each steps fragment an animation to enter from the right edge, then close the task from the last fragment with an animation from top to bottom.
So I add an action on my last fragment in the task graph with popUpTo set to either the fragment I want to go back to (popUpToInclusive = false), or the current navigation graph itself (popUpToInclusive = true/false have the same result) and I set popExitAnim too to indicate which animation should be used when popping this fragment with this action.
In this situation the popExitAnim is just ignored, and the one defined on the action used navigate originally to this fragment is used. I think the problem resides on not creating a new fragment when popping back (not sure), and I would expect to be able to specify the popExitAnim.