From 25434a72dcdd9653130950802a8346fd487ac1c5 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Sat, 11 Apr 2020 12:58:45 +0200 Subject: implements FS#271: Remove own Avatar from message display --- src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java index f67ad887c..9c6cb5ac9 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java @@ -1018,7 +1018,12 @@ public class MessageAdapter extends ArrayAdapter implements CopyTextVie } return view; } else { - AvatarWorkerTask.loadAvatar(message, viewHolder.contact_picture, R.dimen.avatar); + if (message.getStatus() > Message.STATUS_RECEIVED) { + view.findViewById(R.id.placeholder).setVisibility(View.GONE); + viewHolder.contact_picture.setVisibility(View.GONE); + } else { + AvatarWorkerTask.loadAvatar(message, viewHolder.contact_picture, R.dimen.avatar); + } } resetClickListener(viewHolder.message_box, viewHolder.messageBody); -- cgit v1.2.3