kopia lustrzana https://github.com/vitorpamplona/amethyst
Fixing click home button to go to the top of the home feed.
rodzic
733801fddf
commit
ffe58f3d41
|
@ -59,9 +59,10 @@ fun AppBottomBar(navController: NavHostController) {
|
|||
// TODO: Make it scrool to the top
|
||||
navController.navigate(item.route){
|
||||
navController.graph.startDestinationRoute?.let { start ->
|
||||
popUpTo(start)
|
||||
popUpTo(start) { inclusive = item.route == Route.Home.route }
|
||||
restoreState = true
|
||||
}
|
||||
|
||||
launchSingleTop = true
|
||||
restoreState = true
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue