diff --git a/packages/CredentialManager/res/values/strings.xml b/packages/CredentialManager/res/values/strings.xml index c4e9b5710b69a..252ecf4a6005f 100644 --- a/packages/CredentialManager/res/values/strings.xml +++ b/packages/CredentialManager/res/values/strings.xml @@ -3,44 +3,73 @@ Credential Manager + + + Cancel + Continue - More options + Create in another place + Save to another place + Use another device + Save to another device - No thanks + A simple way to sign in safely + Use your fingerprint, face or screen lock to sign in with a unique passkey that can’t be forgotten or stolen. Learn more - Choose where to %1$s - - This password manager will store your passwords, passkeys, and other sign-in info to help you easily sign in. You can change where to save your sign-in info at any time. - Create a passkey in %1$s? - Save your password to %1$s? - Save your sign-in info to %1$s? - Use saved sign in - create your passkey + + Choose where to %1$s + + create your passkeys save your password save your sign-in info - Create passkey in - Save password to - Save sign-in to - Use %1$s for all your sign-ins? - Set as default - Use once - You can use your %1$s %2$s on any device. It is saved to %3$s for %4$s - %1$s passwords, %2$s passkeys - %1$s passwords - %1$s passkeys + + + Set a default password manager to save your passwords and passkeys and sign in faster next time. + + Create a passkey in %1$s? + + Save your password to %1$s? + + Save your sign-in info to %1$s? + + You can use your %1$s %2$s on any device. It is saved to %3$s for %4$s + passkey password sign-ins - Passkey - Another device - Other password managers + + + Create passkey in + + Save password to + + Save sign-in to + + Use %1$s for all your sign-ins? - This password manager will store your passwords and passkeys to help you easily sign in. + + This password manager will store your passwords and passkeys to help you easily sign in. + + Set as default + + Use once + + %1$s passwords, %2$s passkeys + + %1$s passwords + + %1$s passkeys + + Passkey + + Another device + + Other password managers "Close sheet" diff --git a/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreateCredentialComponents.kt b/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreateCredentialComponents.kt index c9cb3ce49db55..fde32792e8f84 100644 --- a/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreateCredentialComponents.kt +++ b/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreateCredentialComponents.kt @@ -202,7 +202,7 @@ fun ProviderSelectionCard( text = stringResource( R.string.choose_provider_title, when (requestDisplayInfo.type) { - TYPE_PUBLIC_KEY_CREDENTIAL -> stringResource(R.string.create_your_passkey) + TYPE_PUBLIC_KEY_CREDENTIAL -> stringResource(R.string.create_your_passkeys) TYPE_PASSWORD_CREDENTIAL -> stringResource(R.string.save_your_password) else -> stringResource(R.string.save_your_sign_in_info) }, @@ -273,6 +273,10 @@ fun ProviderSelectionCard( } } } + Divider( + thickness = 24.dp, + color = Color.Transparent + ) Row( horizontalArrangement = Arrangement.Start, modifier = Modifier.fillMaxWidth().padding(horizontal = 24.dp) @@ -305,9 +309,9 @@ fun MoreOptionsSelectionCard( title = { Text( text = when (requestDisplayInfo.type) { - TYPE_PUBLIC_KEY_CREDENTIAL -> stringResource(R.string.create_passkey_in) - TYPE_PASSWORD_CREDENTIAL -> stringResource(R.string.save_password_to) - else -> stringResource(R.string.save_sign_in_to) + TYPE_PUBLIC_KEY_CREDENTIAL -> stringResource(R.string.create_passkey_in_title) + TYPE_PASSWORD_CREDENTIAL -> stringResource(R.string.save_password_to_title) + else -> stringResource(R.string.save_sign_in_to_title) }, style = MaterialTheme.typography.titleMedium ) @@ -398,7 +402,7 @@ fun MoreOptionsRowIntroCard( textAlign = TextAlign.Center, ) Text( - text = stringResource(R.string.confirm_default_or_use_once_description), + text = stringResource(R.string.use_provider_for_all_description), style = MaterialTheme.typography.bodyLarge, modifier = Modifier.padding(all = 24.dp).align(alignment = Alignment.CenterHorizontally) ) diff --git a/packages/CredentialManager/src/com/android/credentialmanager/getflow/GetCredentialComponents.kt b/packages/CredentialManager/src/com/android/credentialmanager/getflow/GetCredentialComponents.kt index db0c16c0bb9e4..8ccdf4cf972a2 100644 --- a/packages/CredentialManager/src/com/android/credentialmanager/getflow/GetCredentialComponents.kt +++ b/packages/CredentialManager/src/com/android/credentialmanager/getflow/GetCredentialComponents.kt @@ -167,7 +167,7 @@ fun PrimarySelectionCard( horizontalArrangement = Arrangement.Start, modifier = Modifier.fillMaxWidth().padding(horizontal = 24.dp) ) { - CancelButton(stringResource(R.string.string_no_thanks), onCancel) + CancelButton(stringResource(R.string.get_dialog_button_label_no_thanks), onCancel) } Divider( thickness = 18.dp,