Merge "Remove unwanted separator bar when description is empty" into udc-dev am: 4d79564522 am: cb75b75d69

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23047053

Change-Id: Ibadd9685fd3c67e9a33b4b28a8e28831aef3321d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Helen Qin
2023-05-05 03:15:15 +00:00
committed by Automerger Merge Worker

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