Fixed
Status Update
Comments
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 3bf4fb79ca4c33ea6973d5d9071698ae529c086a
Author: Jeremy Woods <jbwoods@google.com>
Date: Fri Nov 20 14:54:22 2020
Ensure navigation to non-startDestination nested graphs
Nested graphs never added a deep link to themselves to ensure that they
could be navigated to when by the route. We need to add a deep link of
the route to the nested graph.
RelNote: "Navigating to a nested graph within your NavHost now works
properly."
Test: NavGraphBuilderTest
Bug: 173647694
Change-Id: I0948d85d73e1e7a9e37a43bc2f9267e0cd7b6355
M navigation/navigation-compose/integration-tests/navigation-demos/src/main/java/androidx/navigation/compose/demos/NavigationDemos.kt
M navigation/navigation-compose/integration-tests/navigation-demos/src/main/java/androidx/navigation/compose/demos/NestedNavDemo.kt
M navigation/navigation-compose/samples/src/main/java/androidx/navigation/compose/samples/NavigationSamples.kt
M navigation/navigation-compose/src/androidTest/java/androidx/navigation/compose/NavGraphBuilderTest.kt
M navigation/navigation-compose/src/main/java/androidx/navigation/compose/NavGraphBuilder.kt
https://android-review.googlesource.com/1506875
Branch: androidx-master-dev
commit 3bf4fb79ca4c33ea6973d5d9071698ae529c086a
Author: Jeremy Woods <jbwoods@google.com>
Date: Fri Nov 20 14:54:22 2020
Ensure navigation to non-startDestination nested graphs
Nested graphs never added a deep link to themselves to ensure that they
could be navigated to when by the route. We need to add a deep link of
the route to the nested graph.
RelNote: "Navigating to a nested graph within your NavHost now works
properly."
Test: NavGraphBuilderTest
Bug: 173647694
Change-Id: I0948d85d73e1e7a9e37a43bc2f9267e0cd7b6355
M navigation/navigation-compose/integration-tests/navigation-demos/src/main/java/androidx/navigation/compose/demos/NavigationDemos.kt
M navigation/navigation-compose/integration-tests/navigation-demos/src/main/java/androidx/navigation/compose/demos/NestedNavDemo.kt
M navigation/navigation-compose/samples/src/main/java/androidx/navigation/compose/samples/NavigationSamples.kt
M navigation/navigation-compose/src/androidTest/java/androidx/navigation/compose/NavGraphBuilderTest.kt
M navigation/navigation-compose/src/main/java/androidx/navigation/compose/NavGraphBuilder.kt
jb...@google.com <jb...@google.com> #3
This has been fixed internally and will be available in the Navigation Compose 1.0.0-alpha03
release.
Description
Component used: Navigation
Version used: 1.0.0-alpha02
Devices/Android versions reproduced on: All
When I make the nested navigation the startDestination then it works otherwise I can’t go to the nested navigation. How can I navigate to the nested navigation? I have attached a gist to reproduced that.