Show fab only on counter screen.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user