diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-14 22:09:03 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-14 22:09:03 +0200 |
commit | 48c780d15ac298094be342a2292f6743fac80495 (patch) | |
tree | 5ca80144be9ac65cf0fd4039c4629b2620072b3f /src | |
parent | e73a6525c7a46cf0345d2e486404fb0b7bad66b0 (diff) |
fixed muc pm avatar
Diffstat (limited to 'src')
-rw-r--r-- | src/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java index ca475cc9..34fea41f 100644 --- a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -389,8 +389,11 @@ public class MessageAdapter extends ArrayAdapter<Message> { viewHolder.contact_picture.setImageBitmap(mBitmapCache.get( contact, getContext())); } else { - viewHolder.contact_picture.setImageBitmap(mBitmapCache.get( - item.getCounterpart(), getContext())); + String name = item.getPresence(); + if (name==null) { + name = item.getCounterpart(); + } + viewHolder.contact_picture.setImageBitmap(mBitmapCache.get(name, getContext())); } viewHolder.contact_picture .setOnClickListener(new OnClickListener() { |