From 1337f1f43284202ede84c871c694a5cc035b72f3 Mon Sep 17 00:00:00 2001 From: mpbw2 <59324545+mpbw2@users.noreply.github.com> Date: Mon, 27 Apr 2026 14:21:50 -0400 Subject: [PATCH] Use parameterized string resource for next TOTP code label --- .../components/listitem/VaultVerificationCodeItem.kt | 5 +++-- ui/src/main/res/values/strings.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/components/listitem/VaultVerificationCodeItem.kt b/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/components/listitem/VaultVerificationCodeItem.kt index ff11709b4e..3804093c44 100644 --- a/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/components/listitem/VaultVerificationCodeItem.kt +++ b/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/components/listitem/VaultVerificationCodeItem.kt @@ -176,9 +176,10 @@ fun VaultVerificationCodeItem( if (nextAuthCode != null && timeLeftSeconds <= NEXT_CODE_THRESHOLD_SECONDS) { Text( modifier = Modifier.testTag(tag = "NextAuthCode"), - text = stringResource(id = BitwardenString.next_verification_code) + - " " + + text = stringResource( + id = BitwardenString.next_verification_code, nextAuthCode.chunked(size = 3).joinToString(separator = " "), + ), style = BitwardenTheme.typography.bodySmall, color = BitwardenTheme.colorScheme.text.secondary, ) diff --git a/ui/src/main/res/values/strings.xml b/ui/src/main/res/values/strings.xml index 570259b5b0..daac09b050 100644 --- a/ui/src/main/res/values/strings.xml +++ b/ui/src/main/res/values/strings.xml @@ -197,7 +197,7 @@ Point your camera at the QR Code. Scanning will happen automatically. Copy TOTP - Next: + Next: %1$s If a login has an authenticator key, copy the TOTP verification code to your clipboard when you autofill the login. Copy TOTP automatically A Premium membership is required to use this feature.