aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/NewConversationActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/eu/siacs/conversations/ui/NewConversationActivity.java')
-rw-r--r--src/eu/siacs/conversations/ui/NewConversationActivity.java8
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;
}
};