From 12e9ebd0acf674e8c205a444b59fdd6e39dcdc1c Mon Sep 17 00:00:00 2001 From: Helen Qin Date: Tue, 16 Apr 2024 07:00:13 +0000 Subject: Update sign-in titles 1. Remove question marks to be consistent with the single tap biometrics titles that also don't have question marks 2. Replace 'sign-in' with 'account' for mixed / unknown credential presentations. Test: see screenshot in bug Bug: 334170176 Bug: 334108777 Change-Id: Id3598bd0d244d3e7608a8b27f0635175118eb4c8 --- packages/CredentialManager/res/values/strings.xml | 10 +++++----- .../credentialmanager/getflow/GetCredentialComponents.kt | 13 +------------ 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/packages/CredentialManager/res/values/strings.xml b/packages/CredentialManager/res/values/strings.xml index b6b1a451da12..9db681a3565d 100644 --- a/packages/CredentialManager/res/values/strings.xml +++ b/packages/CredentialManager/res/values/strings.xml @@ -118,13 +118,13 @@ - Use your saved passkey for %1$s? + Use your saved passkey for %1$s - Use your saved password for %1$s? + Use your saved password for %1$s Use your screen lock to sign in to %1$s with %2$s - Use your sign-in for %1$s? + Use your account for %1$s Sign in to %1$s with your saved passkey for %2$s. @@ -132,7 +132,7 @@ Sign in to %1$s with your saved sign-in info for %2$s. - Unlock sign-in options for %1$s? + Unlock sign-in options for %1$s Choose a saved passkey for %1$s @@ -140,7 +140,7 @@ Choose a saved sign-in for %1$s - Choose a sign-in for %1$s + Choose an account for %1$s Choose an option for %1$s? diff --git a/packages/CredentialManager/src/com/android/credentialmanager/getflow/GetCredentialComponents.kt b/packages/CredentialManager/src/com/android/credentialmanager/getflow/GetCredentialComponents.kt index e68baf48475f..ce4f402700d3 100644 --- a/packages/CredentialManager/src/com/android/credentialmanager/getflow/GetCredentialComponents.kt +++ b/packages/CredentialManager/src/com/android/credentialmanager/getflow/GetCredentialComponents.kt @@ -549,19 +549,8 @@ fun PrimarySelectionCardVImpl( R.string.get_dialog_title_choose_password_for else if (areAllPasskeysOnPrimaryScreen) R.string.get_dialog_title_choose_passkey_for - else if (primaryPageLockedEntryList.isNotEmpty() || - primaryPageCredentialEntryList.any { - it.sortedCredentialEntryList.first().credentialType != - CredentialType.PASSWORD && - it.sortedCredentialEntryList.first().credentialType != - CredentialType.PASSKEY - } - ) // An unknown typed / locked entry exists, and we can't say it is - // already saved, strictly speaking. Hence use a different title - // without the mention of "saved". + else R.string.get_dialog_title_choose_sign_in_for - else // All entries on the primary screen are passkeys or passwords - R.string.get_dialog_title_choose_saved_sign_in_for }, requestDisplayInfo.appName ), -- cgit v1.2.3-59-g8ed1b