Merge pull request #329 from android/bw/fixTraceCrash

Shorten navigation trace, fixes #271
pull/332/head
Ben Weiss 2 years ago committed by GitHub
commit 57e78b5c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -110,7 +110,7 @@ class NiaAppState(
* @param route: Optional route to navigate to in case the destination contains arguments. * @param route: Optional route to navigate to in case the destination contains arguments.
*/ */
fun navigate(destination: NiaNavigationDestination, route: String? = null) { fun navigate(destination: NiaNavigationDestination, route: String? = null) {
trace("Navigation: $destination") { trace("Navigation: ${destination.route}") {
if (destination is TopLevelDestination) { if (destination is TopLevelDestination) {
navController.navigate(route ?: destination.route) { navController.navigate(route ?: destination.route) {
// Pop up to the start destination of the graph to // Pop up to the start destination of the graph to

Loading…
Cancel
Save