diff options
author | steckbrief <steckbrief@chefmail.de> | 2020-04-11 12:58:45 +0200 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2020-04-11 12:58:45 +0200 |
commit | 25434a72dcdd9653130950802a8346fd487ac1c5 (patch) | |
tree | 13b100470bca7f1451b49a46a518ec70826c77c7 /src | |
parent | 659bfb0b8bfacf7397af9f2956dcdb1a39f71971 (diff) |
implements FS#271: Remove own Avatar from message display
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 7 |
1 files changed, 6 insertions, 1 deletions
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<Message> 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); |