From 03cf48f4c14c72f903b7b337759733692a1f1438 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 28 Mar 2023 23:14:05 +0200 Subject: [PATCH] set avatar invisible when message is null --- .../java/im/conversations/android/ui/adapter/MessageAdapter.java | 1 - app/src/main/res/layout/item_message_received.xml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/im/conversations/android/ui/adapter/MessageAdapter.java b/app/src/main/java/im/conversations/android/ui/adapter/MessageAdapter.java index ca87c12c8..e17e149ff 100644 --- a/app/src/main/java/im/conversations/android/ui/adapter/MessageAdapter.java +++ b/app/src/main/java/im/conversations/android/ui/adapter/MessageAdapter.java @@ -93,7 +93,6 @@ public class MessageAdapter if (holder instanceof MessageReceivedViewHolder messageReceivedViewHolder) { final var addressWithName = message.getAddressWithName(); final var avatar = message.getAvatar(); - messageReceivedViewHolder.binding.avatar.setVisibility(View.VISIBLE); if (avatar != null) { AvatarFetcher.fetchInto(messageReceivedViewHolder.binding.avatar, avatar); } else { diff --git a/app/src/main/res/layout/item_message_received.xml b/app/src/main/res/layout/item_message_received.xml index c9d165f92..ab98cea31 100644 --- a/app/src/main/res/layout/item_message_received.xml +++ b/app/src/main/res/layout/item_message_received.xml @@ -9,6 +9,7 @@ android:paddingVertical="6dp">