fixed #406
This commit is contained in:
parent
c62937016b
commit
567827ffca
|
@ -100,11 +100,9 @@ public class ShareWithActivity extends XmppActivity {
|
||||||
});
|
});
|
||||||
for (final Conversation conversation : convList) {
|
for (final Conversation conversation : convList) {
|
||||||
if (!isImage || conversation.getMode() == Conversation.MODE_SINGLE) {
|
if (!isImage || conversation.getMode() == Conversation.MODE_SINGLE) {
|
||||||
View view = createContactView(
|
View view = createContactView(conversation.getName(useSubject),
|
||||||
conversation.getName(useSubject),
|
|
||||||
conversation.getLatestMessage().getBody().trim(),
|
conversation.getLatestMessage().getBody().trim(),
|
||||||
UIHelper.getContactPicture(conversation, 48,
|
conversation.getImage(getApplicationContext(), 48));
|
||||||
this.getApplicationContext(), false));
|
|
||||||
view.setOnClickListener(new OnClickListener() {
|
view.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -136,19 +134,17 @@ public class ShareWithActivity extends XmppActivity {
|
||||||
});
|
});
|
||||||
|
|
||||||
for (int i = 0; i < contactsList.size(); ++i) {
|
for (int i = 0; i < contactsList.size(); ++i) {
|
||||||
final Contact con = contactsList.get(i);
|
final Contact contact = contactsList.get(i);
|
||||||
View view = createContactView(
|
View view = createContactView(contact.getDisplayName(),
|
||||||
con.getDisplayName(),
|
contact.getJid(),
|
||||||
con.getJid(),
|
contact.getImage(48, getApplicationContext()));
|
||||||
UIHelper.getContactPicture(con, 48,
|
|
||||||
this.getApplicationContext(), false));
|
|
||||||
view.setOnClickListener(new OnClickListener() {
|
view.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Conversation conversation = xmppConnectionService
|
Conversation conversation = xmppConnectionService
|
||||||
.findOrCreateConversation(con.getAccount(),
|
.findOrCreateConversation(contact.getAccount(),
|
||||||
con.getJid(), false);
|
contact.getJid(), false);
|
||||||
share(conversation);
|
share(conversation);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue