From 2bdafde9654bf4015d17023586b8c013eb3d92d8 Mon Sep 17 00:00:00 2001 From: Maxime Naturel Date: Fri, 4 Mar 2022 15:43:33 +0100 Subject: [PATCH] Fix wrong click listener on the current available option --- .../vector/app/features/location/LocationSharingFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/location/LocationSharingFragment.kt b/vector/src/main/java/im/vector/app/features/location/LocationSharingFragment.kt index cb7f637536..b1033f2797 100644 --- a/vector/src/main/java/im/vector/app/features/location/LocationSharingFragment.kt +++ b/vector/src/main/java/im/vector/app/features/location/LocationSharingFragment.kt @@ -135,10 +135,10 @@ class LocationSharingFragment @Inject constructor( // change the options dynamically depending on the current chosen location views.shareLocationOptionsPicker.render(LocationSharingOption.USER_CURRENT) views.shareLocationOptionsPicker.optionPinned.debouncedClicks { - viewModel.handle(LocationSharingAction.OnShareLocation) + // TODO } views.shareLocationOptionsPicker.optionUserCurrent.debouncedClicks { - // TODO + viewModel.handle(LocationSharingAction.OnShareLocation) } views.shareLocationOptionsPicker.optionUserLive.debouncedClicks { // TODO