Disables toolbar click

This commit is contained in:
ericdecanini 2022-05-23 12:18:08 +02:00
parent 2d32d0da54
commit 6da990d4a5
1 changed files with 14 additions and 14 deletions

View File

@ -463,20 +463,20 @@ class HomeDetailFragment @Inject constructor(
sharedActionViewModel.post(HomeActivitySharedAction.OpenDrawer)
}
views.homeToolbarContent.debouncedClicks {
withState(viewModel) {
when (it.roomGroupingMethod) {
is RoomGroupingMethod.ByLegacyGroup -> {
// do nothing
}
is RoomGroupingMethod.BySpace -> {
it.roomGroupingMethod.spaceSummary?.let { spaceSummary ->
sharedActionViewModel.post(HomeActivitySharedAction.ShowSpaceSettings(spaceSummary.roomId))
}
}
}
}
}
// views.homeToolbarContent.debouncedClicks {
// withState(viewModel) {
// when (it.roomGroupingMethod) {
// is RoomGroupingMethod.ByLegacyGroup -> {
// // do nothing
// }
// is RoomGroupingMethod.BySpace -> {
// it.roomGroupingMethod.spaceSummary?.let { spaceSummary ->
// sharedActionViewModel.post(HomeActivitySharedAction.ShowSpaceSettings(spaceSummary.roomId))
// }
// }
// }
// }
// }
}
private fun setupBottomNavigationView() {