fixed muc pm avatar

This commit is contained in:
iNPUTmice 2014-08-14 22:09:03 +02:00
parent e73a6525c7
commit 48c780d15a
1 changed files with 5 additions and 2 deletions

View File

@ -389,8 +389,11 @@ public class MessageAdapter extends ArrayAdapter<Message> {
viewHolder.contact_picture.setImageBitmap(mBitmapCache.get( viewHolder.contact_picture.setImageBitmap(mBitmapCache.get(
contact, getContext())); contact, getContext()));
} else { } else {
viewHolder.contact_picture.setImageBitmap(mBitmapCache.get( String name = item.getPresence();
item.getCounterpart(), getContext())); if (name==null) {
name = item.getCounterpart();
}
viewHolder.contact_picture.setImageBitmap(mBitmapCache.get(name, getContext()));
} }
viewHolder.contact_picture viewHolder.contact_picture
.setOnClickListener(new OnClickListener() { .setOnClickListener(new OnClickListener() {