From 82515cf095d38de99dd1a77168331ab7ff2af85e Mon Sep 17 00:00:00 2001 From: Maxime Naturel Date: Thu, 3 Mar 2022 11:47:01 +0100 Subject: [PATCH] Remove usage of strings to be deleted --- .../vector/app/features/location/LocationSharingFragment.kt | 2 +- vector/src/main/res/layout/view_location_sharing_option.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 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 68a3badd1a..788fa93f90 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 @@ -133,7 +133,7 @@ class LocationSharingFragment @Inject constructor( private fun initOptionsPicker() { // TODO // change the options dynamically depending on the current chosen location - views.shareLocationOptionsPicker.setOptions(LocationSharingOption.USER_CURRENT) + views.shareLocationOptionsPicker.setOptions(LocationSharingOption.USER_CURRENT, LocationSharingOption.USER_LIVE) views.shareLocationOptionsPicker.optionPinned.debouncedClicks { viewModel.handle(LocationSharingAction.OnShareLocation) } diff --git a/vector/src/main/res/layout/view_location_sharing_option.xml b/vector/src/main/res/layout/view_location_sharing_option.xml index e1b71ddfaf..8257619294 100644 --- a/vector/src/main/res/layout/view_location_sharing_option.xml +++ b/vector/src/main/res/layout/view_location_sharing_option.xml @@ -26,7 +26,7 @@ android:id="@+id/shareLocationOptionIcon" android:layout_width="40dp" android:layout_height="40dp" - android:contentDescription="@string/a11y_location_share_icon" + android:contentDescription="@string/a11y_location_share_option_pinned_icon" tools:background="@drawable/circle" tools:backgroundTint="?colorPrimary" tools:padding="11dp" @@ -38,6 +38,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="?vctr_content_primary" - tools:text="@string/location_share" /> + tools:text="@string/location_share_option_pinned" />