mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 12:17:50 +01:00
Fixing click home button to go to the top of the home feed.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user