release/2.0 #21

Merged
fabian merged 137 commits from release/2.0 into master 2023-01-28 23:29:27 +01:00
Showing only changes of commit 33e57bcfd7 - Show all commits

View File

@@ -240,16 +240,10 @@ class MainActivity : BaseActivity() {
onClick = {
scope.launch { drawerState.close() }
navController.navigate(screen.route) {
// Pop up to the start destination of the graph to
// avoid building up a large stack of destinations
// on the back stack as users select items
popUpTo(navController.graph.findStartDestination().id) {
saveState = true
}
// Avoid multiple copies of the same destination when
// reselecting the same item
launchSingleTop = true
// Restore state when reselecting a previously selected item
restoreState = true
}
},
@@ -263,7 +257,7 @@ class MainActivity : BaseActivity() {
drawerState,
scope,
navController,
counterViewModel.keyboardHidden
counterViewModel.keyboardHidden && (currentDestination?.hierarchy?.any { it.route == "counter" } == true)
) { counterViewModel.keyboardHidden = false }
}
}