From cdc773dab101b962321d78e105aa8c4c1387d6f9 Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 12 Mar 2026 15:58:27 +0100 Subject: [PATCH] Remove hardcoded string --- .../location/impl/common/ui/LocationConstraintsDialog.kt | 2 +- libraries/ui-strings/src/main/res/values/localazy.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/common/ui/LocationConstraintsDialog.kt b/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/common/ui/LocationConstraintsDialog.kt index d42a551254..1ae4fa2182 100644 --- a/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/common/ui/LocationConstraintsDialog.kt +++ b/features/location/impl/src/main/kotlin/io/element/android/features/location/impl/common/ui/LocationConstraintsDialog.kt @@ -45,7 +45,7 @@ fun LocationConstraintsDialog( cancelText = stringResource(CommonStrings.action_cancel), ) LocationConstraintsDialogState.LocationServiceDisabled -> ConfirmationDialog( - content = "Please enable your GPS to access location-based features.", + content = stringResource(CommonStrings.error_location_service_disabled_android), onSubmitClick = onOpenLocationSettings, onDismiss = onDismiss, submitText = stringResource(CommonStrings.action_continue), diff --git a/libraries/ui-strings/src/main/res/values/localazy.xml b/libraries/ui-strings/src/main/res/values/localazy.xml index d655532e6c..0aa2b29f2e 100644 --- a/libraries/ui-strings/src/main/res/values/localazy.xml +++ b/libraries/ui-strings/src/main/res/values/localazy.xml @@ -438,6 +438,7 @@ Are you sure you want to continue?" "%1$s could not access your location. Please try again later." "Failed to upload your voice message." "The room no longer exists or the invite is no longer valid." + "Please enable your GPS to access location-based features." "Message not found" "%1$s does not have permission to access your location. You can enable access in Settings." "%1$s does not have permission to access your location. Enable access below."