Make recipient lookup asynchronous, add listener when appropriate.
Fixes #4032 // FREEBIE
This commit is contained in:
parent
d4718c373a
commit
b5216ed7af
1 changed files with 4 additions and 2 deletions
|
@ -300,7 +300,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||
addAttachmentContactInfo(data.getData());
|
||||
break;
|
||||
case GROUP_EDIT:
|
||||
this.recipients = RecipientFactory.getRecipientsForIds(this, data.getLongArrayExtra(GroupCreateActivity.GROUP_RECIPIENT_EXTRA), true);
|
||||
recipients = RecipientFactory.getRecipientsForIds(this, data.getLongArrayExtra(GroupCreateActivity.GROUP_RECIPIENT_EXTRA), true);
|
||||
recipients.addListener(this);
|
||||
titleView.setTitle(recipients);
|
||||
setBlockedUserState(recipients);
|
||||
supportInvalidateOptionsMenu();
|
||||
|
@ -883,7 +884,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||
if (recipients != null) {
|
||||
long[] ids = recipients.getIds();
|
||||
Log.w("ConversationActivity", "Looking up new recipients...");
|
||||
recipients = RecipientFactory.getRecipientsForIds(context, ids, false);
|
||||
recipients = RecipientFactory.getRecipientsForIds(context, ids, true);
|
||||
recipients.addListener(ConversationActivity.this);
|
||||
titleView.setTitle(recipients);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue