stop listening on old recipient changes

Closes #4251
// FREEBIE
This commit is contained in:
Jake McGinty 2015-10-14 15:09:02 -07:00 committed by Moxie Marlinspike
parent 09e52834a6
commit 4a3faf9086

View File

@ -927,6 +927,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
}
private void initializeResources() {
if (recipients != null) recipients.removeListener(this);
recipients = RecipientFactory.getRecipientsForIds(this, getIntent().getLongArrayExtra(RECIPIENTS_EXTRA), true);
threadId = getIntent().getLongExtra(THREAD_ID_EXTRA, -1);
distributionType = getIntent().getIntExtra(DISTRIBUTION_TYPE_EXTRA, ThreadDatabase.DistributionTypes.DEFAULT);