mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 16:46:44 +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
|
// TODO: Make it scrool to the top
|
||||||
navController.navigate(item.route){
|
navController.navigate(item.route){
|
||||||
navController.graph.startDestinationRoute?.let { start ->
|
navController.graph.startDestinationRoute?.let { start ->
|
||||||
popUpTo(start)
|
popUpTo(start) { inclusive = item.route == Route.Home.route }
|
||||||
restoreState = true
|
restoreState = true
|
||||||
}
|
}
|
||||||
|
|
||||||
launchSingleTop = true
|
launchSingleTop = true
|
||||||
restoreState = true
|
restoreState = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user