From 7e6a12854fea208709c4dc1c1d9a84e6b84e4bdd Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 9 Oct 2024 10:20:56 +0200 Subject: [PATCH] QrCode intro screen: add subtitle and fix button wording #3632 --- .../login/impl/screens/qrcode/intro/QrCodeIntroView.kt | 4 ++-- features/login/impl/src/main/res/values/localazy.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/qrcode/intro/QrCodeIntroView.kt b/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/qrcode/intro/QrCodeIntroView.kt index a128884e40..0a2892d661 100644 --- a/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/qrcode/intro/QrCodeIntroView.kt +++ b/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/qrcode/intro/QrCodeIntroView.kt @@ -30,7 +30,6 @@ import io.element.android.libraries.designsystem.theme.components.Button import io.element.android.libraries.designsystem.theme.components.Icon import io.element.android.libraries.designsystem.utils.annotatedTextWithBold import io.element.android.libraries.permissions.api.PermissionsView -import io.element.android.libraries.ui.strings.CommonStrings import kotlinx.collections.immutable.persistentListOf @Composable @@ -51,6 +50,7 @@ fun QrCodeIntroView( onBackClick = onBackClick, iconStyle = BigIcon.Style.Default(CompoundIcons.Computer()), title = stringResource(id = R.string.screen_qr_code_login_initial_state_title, state.desktopAppName), + subTitle = stringResource(id = R.string.screen_qr_code_login_initial_state_subtitle), content = { Content(state = state) }, buttons = { Buttons(state = state) } ) @@ -87,7 +87,7 @@ private fun ColumnScope.Buttons( state: QrCodeIntroState, ) { Button( - text = stringResource(id = CommonStrings.action_continue), + text = stringResource(id = R.string.screen_qr_code_login_initial_state_button_title), modifier = Modifier.fillMaxWidth(), onClick = { state.eventSink.invoke(QrCodeIntroEvents.Continue) diff --git a/features/login/impl/src/main/res/values/localazy.xml b/features/login/impl/src/main/res/values/localazy.xml index a46b083d63..be01bd56d5 100644 --- a/features/login/impl/src/main/res/values/localazy.xml +++ b/features/login/impl/src/main/res/values/localazy.xml @@ -60,6 +60,7 @@ Try signing in manually, or scan the QR code with another device." "Select %1$s" "“Link new device”" "Scan the QR code with this device" + "Only available if your account provider supports it." "Open %1$s on another device to get the QR code" "Use the QR code shown on the other device." "Try again"