Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9af5bca2 authored by Helen Qin's avatar Helen Qin
Browse files

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
parent 11a56854
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -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 {