Unsubscribe from old recipient observers in ConversationActivity.
This commit is contained in:
parent
0ffa10eaea
commit
0ccbb22e4c
1 changed files with 4 additions and 0 deletions
|
@ -1620,6 +1620,10 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||
}
|
||||
|
||||
private void initializeResources() {
|
||||
if (recipient != null) {
|
||||
recipient.removeObservers(this);
|
||||
}
|
||||
|
||||
recipient = Recipient.live(getIntent().getParcelableExtra(RECIPIENT_EXTRA));
|
||||
threadId = getIntent().getLongExtra(THREAD_ID_EXTRA, -1);
|
||||
archived = getIntent().getBooleanExtra(IS_ARCHIVED_EXTRA, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue