From df17e143d39d8b6fefe54ae3a1300e76abb97c80 Mon Sep 17 00:00:00 2001 From: Qinmei Du Date: Thu, 10 Nov 2022 09:01:18 +0000 Subject: [PATCH] Update the intro screen after select on a more options row screenshot: https://screenshot.googleplex.com/jCnd2ZamuTFDnNZ Test: deployed locally Bug: 253157211 Change-Id: Ie96bf43dea6a2380f123b084190c541c5c7fcc08 --- packages/CredentialManager/res/values/strings.xml | 2 ++ .../createflow/CreatePasskeyComponents.kt | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/packages/CredentialManager/res/values/strings.xml b/packages/CredentialManager/res/values/strings.xml index 70376e4ca696b..d47e3f49242c2 100644 --- a/packages/CredentialManager/res/values/strings.xml +++ b/packages/CredentialManager/res/values/strings.xml @@ -30,6 +30,8 @@ sign-ins Another device Other password manager + + This password manager will store your passwords and passkeys to help you easily sign in. "Close sheet" diff --git a/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreatePasskeyComponents.kt b/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreatePasskeyComponents.kt index e1313e8b565f1..67b704f5d787c 100644 --- a/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreatePasskeyComponents.kt +++ b/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreatePasskeyComponents.kt @@ -21,6 +21,7 @@ import androidx.compose.material3.TextButton import androidx.compose.material3.TopAppBar import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.ArrowBack +import androidx.compose.material.icons.outlined.NewReleases import androidx.compose.material.icons.filled.Add import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect @@ -309,9 +310,21 @@ fun MoreOptionsRowIntroCard( ) { Card() { Column() { + Icon( + Icons.Outlined.NewReleases, + contentDescription = null, + modifier = Modifier.align(alignment = Alignment.CenterHorizontally).padding(all = 24.dp) + ) Text( text = stringResource(R.string.use_provider_for_all_title, providerInfo.displayName), style = MaterialTheme.typography.titleMedium, + modifier = Modifier.padding(horizontal = 24.dp) + .align(alignment = Alignment.CenterHorizontally), + textAlign = TextAlign.Center, + ) + Text( + text = stringResource(R.string.confirm_default_or_use_once_description), + style = MaterialTheme.typography.bodyLarge, modifier = Modifier.padding(all = 24.dp).align(alignment = Alignment.CenterHorizontally) ) Row(