Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit fd47fb01feb5a620d4711da8122237ef22f6dfbd
Author: Ian Lake <ilake@google.com>
Date: Tue Jun 02 10:32:29 2020
Improve destination unknown error messages
Always include the current destination in
"destination unknown" error messages to allow
developers to determine exactly where they should
start debugging their navigation graph logic.
Test: visual confirmation, tests pass
BUG: 157764916
Change-Id: I92cd650eed71c7e0512a0a2473f5be0b625705d1
M navigation/navigation-runtime/src/androidTest/java/androidx/navigation/NavControllerTest.kt
M navigation/navigation-runtime/src/main/java/androidx/navigation/NavController.java
M navigation/navigation-runtime/src/main/java/androidx/navigation/NavDeepLinkBuilder.java
https://android-review.googlesource.com/1321938
Branch: androidx-master-dev
commit fd47fb01feb5a620d4711da8122237ef22f6dfbd
Author: Ian Lake <ilake@google.com>
Date: Tue Jun 02 10:32:29 2020
Improve destination unknown error messages
Always include the current destination in
"destination unknown" error messages to allow
developers to determine exactly where they should
start debugging their navigation graph logic.
Test: visual confirmation, tests pass
BUG: 157764916
Change-Id: I92cd650eed71c7e0512a0a2473f5be0b625705d1
M navigation/navigation-runtime/src/androidTest/java/androidx/navigation/NavControllerTest.kt
M navigation/navigation-runtime/src/main/java/androidx/navigation/NavController.java
M navigation/navigation-runtime/src/main/java/androidx/navigation/NavDeepLinkBuilder.java
il...@google.com <il...@google.com> #3
We've improved the error messages across NavController to better call out exactly what graph/destination you're on when an action/destination is not found. This will be available in Navigation 2.3.0-rc01.
Description
Component used: Navigation Version used: 2.3.0-beta01
The error message when you navigate to an unknown destination/action id is
It would be helpful if it also included what your current destination is so that it would be easier to debug where you are on the navigation graph and why the destination/action ID you expected to be visible is no longer found.