From 4ab3fa168c12b180c062e93ae261e03a88633683 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 8 Jan 2024 18:14:40 +0100 Subject: [PATCH] Hide supporting content if comment is none --- .../main/java/eu/steffo/twom/room/MemberListItem.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/steffo/twom/room/MemberListItem.kt b/app/src/main/java/eu/steffo/twom/room/MemberListItem.kt index 79386c8..6e7db87 100644 --- a/app/src/main/java/eu/steffo/twom/room/MemberListItem.kt +++ b/app/src/main/java/eu/steffo/twom/room/MemberListItem.kt @@ -65,10 +65,12 @@ fun MemberListItem( ) }, supportingContent = { - Text( - text = rsvpComment, - color = colorRole.value, - ) + if (rsvpComment != "") { + Text( + text = rsvpComment, + color = colorRole.value, + ) + } }, ) } \ No newline at end of file