Merge "Remove unwanted separator bar when description is empty" into udc-dev

This commit is contained in:
Helen Qin
2023-05-05 02:27:19 +00:00
committed by Android (Google) Code Review

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