Component used: android.arch.navigation:navigation-fragment:1.0.0-alpha07 Version used: 1.0.0-alpha07 Devices/Android versions reproduced on: API 28
I added a global nav action and set the pop behaviours "pop to" arg to the graph id and inclusive to false. I now expected that when I now use this nav action that it clears the whole back stack before navigating. But this only works for the first time, when I use the nav action more than once, the back stack is not cleared before navigating.
I included a sample project where you can see this behavior. You can select another tab once, and when you press back the app closes (as expected). But when you select another tab more than once it firstly navigates back to the previous fragments.
Hi Google Team - I'm also facing this issue. Can we please prioritize this issue to fix?I can't get code coverage report with Android Test Orchestrator.
Add comment
Issue metadata
mu...@gmail.com
Bug
P3
S2
Duplicate of 116831650
Default access
View
Expanded Access
il...@google.com
--
an...@google.com
be...@google.com
mu...@gmail.com
--
--
--
--
--
--
--
--
--
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)
Description
Version used: 1.0.0-alpha07
Devices/Android versions reproduced on: API 28
I added a global nav action and set the pop behaviours "pop to" arg to the graph id and inclusive to false.
I now expected that when I now use this nav action that it clears the whole back stack before navigating.
But this only works for the first time, when I use the nav action more than once, the back stack is not cleared before navigating.
I included a sample project where you can see this behavior.
You can select another tab once, and when you press back the app closes (as expected).
But when you select another tab more than once it firstly navigates back to the previous fragments.