fixed muc pm avatar
This commit is contained in:
parent
e73a6525c7
commit
48c780d15a
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue