Fixed
Status Update
Comments
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 3ab47ff262bdf93fcc60ef04dd8f03f639385c66
Author: Clara Fok <clarafok@google.com>
Date: Wed Feb 15 16:11:54 2023
Add navigation APIs with route support for nullable args
APIs such as getBackStackEntry, popBackStack, clearBackStack that takes route can now support nullable arguments and nullable query params
Test: ./gradlew navigation:navigation-runtime:cC
Bug: 269302500
Relnote: "APIs such as getBackStackEntry, popBackStack, clearBackStack that takes route can now support nullable arguments and nullable query params"
Change-Id: I222940d306f94c737600eb0381228c7594808bfa
M navigation/navigation-common/src/main/java/androidx/navigation/NavDeepLink.kt
M navigation/navigation-common/src/main/java/androidx/navigation/NavDestination.kt
M navigation/navigation-runtime/src/androidTest/java/androidx/navigation/NavControllerRouteTest.kt
https://android-review.googlesource.com/2439277
Branch: androidx-main
commit 3ab47ff262bdf93fcc60ef04dd8f03f639385c66
Author: Clara Fok <clarafok@google.com>
Date: Wed Feb 15 16:11:54 2023
Add navigation APIs with route support for nullable args
APIs such as getBackStackEntry, popBackStack, clearBackStack that takes route can now support nullable arguments and nullable query params
Test: ./gradlew navigation:navigation-runtime:cC
Bug: 269302500
Relnote: "APIs such as getBackStackEntry, popBackStack, clearBackStack that takes route can now support nullable arguments and nullable query params"
Change-Id: I222940d306f94c737600eb0381228c7594808bfa
M navigation/navigation-common/src/main/java/androidx/navigation/NavDeepLink.kt
M navigation/navigation-common/src/main/java/androidx/navigation/NavDestination.kt
M navigation/navigation-runtime/src/androidTest/java/androidx/navigation/NavControllerRouteTest.kt
cl...@google.com <cl...@google.com> #3
This has been fixed internally and will be available in navigation 2.6.0-alpha07
na...@google.com <na...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.navigation:navigation-common:2.6.0-alpha07
androidx.navigation:navigation-runtime:2.6.0-alpha07
Description
Component used: Navigation Version used: 2.6.0-alpha05 Devices/Android versions reproduced on: all
Hi, If we have a NavHost like this:
The following methods don't work:
However, if we put a default value different than
null
, it's working.