aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-09-02 11:26:56 +0200
committeriNPUTmice <daniel@gultsch.de>2014-09-02 11:31:56 +0200
commit567827ffcaba46e062a8d087392d780c377d282f (patch)
tree15db7521a564733b2bf916846794307e0c94b5bd /src/eu/siacs
parentc62937016b08b2335af78cdc7b46093cc96c3956 (diff)
fixed #406
Diffstat (limited to 'src/eu/siacs')
-rw-r--r--src/eu/siacs/conversations/ui/ShareWithActivity.java20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/eu/siacs/conversations/ui/ShareWithActivity.java b/src/eu/siacs/conversations/ui/ShareWithActivity.java
index 461aaec4..57b4ba31 100644
--- a/src/eu/siacs/conversations/ui/ShareWithActivity.java
+++ b/src/eu/siacs/conversations/ui/ShareWithActivity.java
@@ -100,11 +100,9 @@ public class ShareWithActivity extends XmppActivity {
});
for (final Conversation conversation : convList) {
if (!isImage || conversation.getMode() == Conversation.MODE_SINGLE) {
- View view = createContactView(
- conversation.getName(useSubject),
+ View view = createContactView(conversation.getName(useSubject),
conversation.getLatestMessage().getBody().trim(),
- UIHelper.getContactPicture(conversation, 48,
- this.getApplicationContext(), false));
+ conversation.getImage(getApplicationContext(), 48));
view.setOnClickListener(new OnClickListener() {
@Override
@@ -136,19 +134,17 @@ public class ShareWithActivity extends XmppActivity {
});
for (int i = 0; i < contactsList.size(); ++i) {
- final Contact con = contactsList.get(i);
- View view = createContactView(
- con.getDisplayName(),
- con.getJid(),
- UIHelper.getContactPicture(con, 48,
- this.getApplicationContext(), false));
+ final Contact contact = contactsList.get(i);
+ View view = createContactView(contact.getDisplayName(),
+ contact.getJid(),
+ contact.getImage(48, getApplicationContext()));
view.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Conversation conversation = xmppConnectionService
- .findOrCreateConversation(con.getAccount(),
- con.getJid(), false);
+ .findOrCreateConversation(contact.getAccount(),
+ contact.getJid(), false);
share(conversation);
}
});