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

Commit a5785648 authored by Helen Qin's avatar Helen Qin
Browse files

[CredManUi] Don't display separator when display name is empty

Bug: 273808782
Test: manual (see bug for screenshot)
Change-Id: I9ecb5612bcc334e9e3d1b9068a4f2664af3d0d07
parent c9fd9d37
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.credentialmanager.createflow

import android.text.TextUtils
import androidx.activity.compose.ManagedActivityResultLauncher
import androidx.activity.result.ActivityResult
import androidx.activity.result.IntentSenderRequest
@@ -668,7 +669,7 @@ fun PrimaryCreateOptionRow(
        entryHeadlineText = requestDisplayInfo.title,
        entrySecondLineText = when (requestDisplayInfo.type) {
            CredentialType.PASSKEY -> {
                if (requestDisplayInfo.subtitle != null) {
                if (!TextUtils.isEmpty(requestDisplayInfo.subtitle)) {
                    requestDisplayInfo.subtitle + " • " + stringResource(
                        R.string.passkey_before_subtitle
                    )