From 8910d20ae45c08086b631684f9aa473bdd2d6b7e Mon Sep 17 00:00:00 2001 From: ganfra Date: Tue, 24 Mar 2026 11:22:51 +0100 Subject: [PATCH] Remove hardcoded strings --- .../features/location/impl/share/ShareLocationView.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/share/ShareLocationView.kt b/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/share/ShareLocationView.kt index 4651389212..1e163f417d 100644 --- a/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/share/ShareLocationView.kt +++ b/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/share/ShareLocationView.kt @@ -37,6 +37,7 @@ import io.element.android.compound.theme.ElementTheme import io.element.android.compound.tokens.generated.CompoundIcons import io.element.android.features.location.api.Location import io.element.android.features.location.api.internal.centerBottomEdge +import io.element.android.features.location.impl.R import io.element.android.features.location.impl.common.MapDefaults import io.element.android.features.location.impl.common.ui.LocationConstraintsDialog import io.element.android.features.location.impl.common.ui.LocationFloatingActionButton @@ -242,7 +243,7 @@ private fun ShareLiveLocationItem( ) { ListItem( headlineContent = { - Text("Share live location") + Text(stringResource(CommonStrings.action_share_live_location)) }, onClick = onClick, leadingContent = ListItemContent.Icon( @@ -260,7 +261,7 @@ private fun LiveLocationDurationDialog( ) { var selectedIndex by remember { mutableIntStateOf(0) } ListDialog( - title = "Choose how long to share your live location.", + title = stringResource(R.string.screen_share_location_live_location_duration_picker_title), submitText = stringResource(CommonStrings.action_continue), onSubmit = { onSelectDuration(durations[selectedIndex].duration) }, onDismissRequest = onDismiss,