Hide empty location / description in calendar results

This commit is contained in:
MM20 2024-04-21 14:10:34 +02:00
parent b61596370b
commit 0ebf0f872d
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -153,7 +153,7 @@ fun CalendarItem(
style = MaterialTheme.typography.bodySmall
)
}
if (calendar.description != null) {
if (!calendar.description.isNullOrBlank()) {
Row(
Modifier
.fillMaxWidth(),
@ -187,7 +187,7 @@ fun CalendarItem(
)
}
}
if (calendar.location != null) {
if (!calendar.location.isNullOrBlank()) {
Row(
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier