Remove unwanted separator bar when description is empty

Bug: 280887017
Test: manual (see bug for screenshots)
Change-Id: I2efc07521de521ccd12484dc3dcb448778c834a9
This commit is contained in:
Helen Qin
2023-05-04 22:57:30 +00:00
parent 8f85ec1e56
commit 465b407923

View File

@@ -436,7 +436,8 @@ fun CreationSelectionCard(
},
)
}
if (createOptionInfo.footerDescription != null) {
val footerDescription = createOptionInfo.footerDescription
if (footerDescription != null && footerDescription.length > 0) {
item {
Divider(
thickness = 1.dp,
@@ -446,7 +447,7 @@ fun CreationSelectionCard(
}
item {
Row(modifier = Modifier.fillMaxWidth().wrapContentHeight()) {
BodySmallText(text = createOptionInfo.footerDescription)
BodySmallText(text = footerDescription)
}
}
}