Disables toolbar click
This commit is contained in:
parent
2d32d0da54
commit
6da990d4a5
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue