185: Preserve backstack in navigation r=msfjarvis a=msfjarvis

bors r+

Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
bors[bot] 2021-04-02 15:50:27 +00:00 committed by GitHub
commit 4e73075728
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,6 @@ fun LobstersApp() {
val navigateToDestination: (destination: Destination) -> Unit = { destination -> val navigateToDestination: (destination: Destination) -> Unit = { destination ->
navController.navigate(destination.route) { navController.navigate(destination.route) {
launchSingleTop = true launchSingleTop = true
popUpTo(navController.graph.startDestination) { inclusive = false }
} }
} }
val jumpToIndex: suspend (Int, Destination) -> Unit = { index, screen -> val jumpToIndex: suspend (Int, Destination) -> Unit = { index, screen ->