kopia lustrzana https://github.com/ryukoposting/Signal-Android
Make recipient lookup asynchronous, add listener when appropriate.
Fixes #4032 // FREEBIEfork-5.53.8
rodzic
d4718c373a
commit
b5216ed7af
|
@ -300,7 +300,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||||
addAttachmentContactInfo(data.getData());
|
addAttachmentContactInfo(data.getData());
|
||||||
break;
|
break;
|
||||||
case GROUP_EDIT:
|
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);
|
titleView.setTitle(recipients);
|
||||||
setBlockedUserState(recipients);
|
setBlockedUserState(recipients);
|
||||||
supportInvalidateOptionsMenu();
|
supportInvalidateOptionsMenu();
|
||||||
|
@ -883,7 +884,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||||
if (recipients != null) {
|
if (recipients != null) {
|
||||||
long[] ids = recipients.getIds();
|
long[] ids = recipients.getIds();
|
||||||
Log.w("ConversationActivity", "Looking up new recipients...");
|
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);
|
titleView.setTitle(recipients);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue