Hide empty location / description in calendar results
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user