From 0ebf0f872da657395a53cb319503630e4a58008c Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Sun, 21 Apr 2024 14:10:34 +0200 Subject: [PATCH] Hide empty location / description in calendar results --- .../launcher2/ui/launcher/search/calendar/CalendarItem.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/search/calendar/CalendarItem.kt b/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/search/calendar/CalendarItem.kt index 54e23548..7e026c2a 100644 --- a/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/search/calendar/CalendarItem.kt +++ b/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/search/calendar/CalendarItem.kt @@ -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