diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-13 03:52:41 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-13 03:52:41 +0100 |
commit | a80e3131be975e35c85b3f746cef233fafebaae0 (patch) | |
tree | c5997e923a0d32527719546067429e78af7f33e2 /src/eu/siacs/conversations/ui/NewConversationActivity.java | |
parent | eadebeb77cbc4f5b49d484b8a64058630385afe6 (diff) |
contact picture generation centralized + basic registry stuff
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/ui/NewConversationActivity.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/eu/siacs/conversations/ui/NewConversationActivity.java b/src/eu/siacs/conversations/ui/NewConversationActivity.java index 4b323c26..e4fb6d14 100644 --- a/src/eu/siacs/conversations/ui/NewConversationActivity.java +++ b/src/eu/siacs/conversations/ui/NewConversationActivity.java @@ -135,15 +135,9 @@ public class NewConversationActivity extends XmppActivity { TextView contactJid = (TextView) view .findViewById(R.id.contact_jid); contactJid.setText(contact.getJid()); - String profilePhoto = getItem(position).getProfilePhoto(); ImageView imageView = (ImageView) view .findViewById(R.id.contact_photo); - if (profilePhoto != null) { - imageView.setImageURI(Uri.parse(profilePhoto)); - } else { - imageView.setImageBitmap(UIHelper.getUnknownContactPicture( - getItem(position).getDisplayName(), 90)); - } + imageView.setImageBitmap(UIHelper.getContactPicture(contact,90,this.getContext())); return view; } }; |