From 19341a12a73ab4abfbf6ef8506f459ebae577b2a Mon Sep 17 00:00:00 2001 From: Helen Qin Date: Tue, 9 May 2023 05:35:27 +0000 Subject: [PATCH] Handle empty action entry subtitle Test: manual (see bug for screenshots) Bug: 281618168 Fix: 281618168 Change-Id: If0314aa51deafcfa13e9c95837f50b68f9eb173c --- .../src/com/android/credentialmanager/common/ui/Entry.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/CredentialManager/src/com/android/credentialmanager/common/ui/Entry.kt b/packages/CredentialManager/src/com/android/credentialmanager/common/ui/Entry.kt index 2dba2ab6777c7..1c394ec4ba551 100644 --- a/packages/CredentialManager/src/com/android/credentialmanager/common/ui/Entry.kt +++ b/packages/CredentialManager/src/com/android/credentialmanager/common/ui/Entry.kt @@ -255,7 +255,7 @@ fun ActionEntry( Column(modifier = Modifier.wrapContentSize() .padding(start = 16.dp, top = 16.dp, bottom = 16.dp)) { SmallTitleText(entryHeadlineText) - if (entrySecondLineText != null) { + if (entrySecondLineText != null && entrySecondLineText.isNotEmpty()) { BodySmallText(entrySecondLineText) } }