mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 05:57:03 +05:30
refactor(android): remove unnecessary non-null assertion
This commit is contained in:
parent
a1ab32c43e
commit
dd76c7bed7
1 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,9 @@ fun ClawNavigationBar(
|
|||
navItem.listStateResetCallback()
|
||||
return@NavigationBarItem
|
||||
}
|
||||
navController.popBackStack(navController.graph.startDestinationRoute!!, false)
|
||||
navController.graph.startDestinationRoute?.let { startDestination ->
|
||||
navController.popBackStack(startDestination, false)
|
||||
}
|
||||
if (navItem.route != Destinations.startDestination.route) {
|
||||
navController.navigate(navItem.route)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue