diff options
| author | 2023-03-21 23:27:18 +0000 | |
|---|---|---|
| committer | 2023-03-21 23:27:18 +0000 | |
| commit | a578564800653cdafe404094e59d994fe46c3227 (patch) | |
| tree | c2eca2cb2f7b74816bd3d8aaa5e0c5b26bb5c3b1 | |
| parent | c9fd9d37693044bf563b8838f922cdd4d49b0f3b (diff) | |
[CredManUi] Don't display separator when display name is empty
Bug: 273808782
Test: manual (see bug for screenshot)
Change-Id: I9ecb5612bcc334e9e3d1b9068a4f2664af3d0d07
| -rw-r--r-- | packages/CredentialManager/src/com/android/credentialmanager/createflow/CreateCredentialComponents.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreateCredentialComponents.kt b/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreateCredentialComponents.kt index bcf692fceacc..7b98049b51c0 100644 --- a/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreateCredentialComponents.kt +++ b/packages/CredentialManager/src/com/android/credentialmanager/createflow/CreateCredentialComponents.kt @@ -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 ) |