Save hybrid flow uses dynamic type values.

The confirmation title will contain passkey, password, or sign-in
depending on the request type. Before, the flow unconditionally
mentioned passkey.

Bug: 280117374
Test: manual (see bug for screenshots)
Change-Id: I64a1a2e3afa263b6c113832624c9b3694ddea71d
This commit is contained in:
Helen Qin
2023-05-01 16:21:08 +00:00
parent 11a5685490
commit 9af5bca25e

View File

@@ -465,7 +465,17 @@ fun ExternalOnlySelectionCard(
SheetContainerCard {
item { HeadlineIcon(imageVector = Icons.Outlined.QrCodeScanner) }
item { Divider(thickness = 16.dp, color = Color.Transparent) }
item { HeadlineText(text = stringResource(R.string.create_passkey_in_other_device_title)) }
item {
HeadlineText(
text = stringResource(
when (requestDisplayInfo.type) {
CredentialType.PASSKEY -> R.string.create_passkey_in_other_device_title
CredentialType.PASSWORD -> R.string.save_password_on_other_device_title
else -> R.string.save_sign_in_on_other_device_title
}
)
)
}
item { Divider(thickness = 24.dp, color = Color.Transparent) }
item {
CredentialContainerCard {