Skip to content

Commit

Permalink
Merge pull request #125 from NordicPlayground/bugfix/nav
Browse files Browse the repository at this point in the history
Navigation bugs fixed
  • Loading branch information
philips77 authored Dec 23, 2024
2 parents 83e9859 + 59e52f8 commit f5d2cf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion navigation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ android {
}

dependencies {
implementation(libs.androidx.navigation.compose)
// NavBackStackEntry is exposed in the API of NavigationView.
api(libs.androidx.navigation.compose)
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ fun SavedStateHandle.get(destination: DestinationId<Unit, *>): Nothing =
* Pop up to a given destination before navigating. This pops all non-matching destination routes
* from the back stack until the destination with a matching route is found.
*/
fun NavOptionsBuilder.popUpTo(
fun NavOptionsBuilder.popUpToDestination(
destination: DestinationId<*, *>,
popUpToBuilder: PopUpToBuilder.() -> Unit = {}
) = popUpTo(destination.name, popUpToBuilder)
Expand Down

0 comments on commit f5d2cf7

Please sign in to comment.