LobstersApp: don't clear navigation backstack on going back

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-04-02 21:19:00 +05:30
parent 9c10cb02b8
commit f785031ad8
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

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