Fixing click home button to go to the top of the home feed.

pull/7/head
Vitor Pamplona 2023-01-21 13:07:47 -03:00
rodzic 733801fddf
commit ffe58f3d41
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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
}