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) sharedActionViewModel.post(HomeActivitySharedAction.OpenDrawer)
} }
views.homeToolbarContent.debouncedClicks { // views.homeToolbarContent.debouncedClicks {
withState(viewModel) { // withState(viewModel) {
when (it.roomGroupingMethod) { // when (it.roomGroupingMethod) {
is RoomGroupingMethod.ByLegacyGroup -> { // is RoomGroupingMethod.ByLegacyGroup -> {
// do nothing // // do nothing
} // }
is RoomGroupingMethod.BySpace -> { // is RoomGroupingMethod.BySpace -> {
it.roomGroupingMethod.spaceSummary?.let { spaceSummary -> // it.roomGroupingMethod.spaceSummary?.let { spaceSummary ->
sharedActionViewModel.post(HomeActivitySharedAction.ShowSpaceSettings(spaceSummary.roomId)) // sharedActionViewModel.post(HomeActivitySharedAction.ShowSpaceSettings(spaceSummary.roomId))
} // }
} // }
} // }
} // }
} // }
} }
private fun setupBottomNavigationView() { private fun setupBottomNavigationView() {