From 6da990d4a58b9748836a0649be9219416a0c88e4 Mon Sep 17 00:00:00 2001 From: ericdecanini Date: Mon, 23 May 2022 12:18:08 +0200 Subject: [PATCH] Disables toolbar click --- .../app/features/home/HomeDetailFragment.kt | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt b/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt index 33d1b963ae..7191fe881a 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt @@ -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() {