Handle empty action entry subtitle

Test: manual (see bug for screenshots)
Bug: 281618168
Fix: 281618168
Change-Id: If0314aa51deafcfa13e9c95837f50b68f9eb173c
This commit is contained in:
Helen Qin
2023-05-09 05:35:27 +00:00
parent fcdac40e64
commit 19341a12a7

View File

@@ -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)
}
}