Fix sendComplete UI updates on destroyed views

Fixes #2915
Closes #2924

// FREEBIE
This commit is contained in:
Jake McGinty 2015-04-08 17:43:14 -07:00 committed by Moxie Marlinspike
parent b692d48b98
commit 1f9a0fab3c

View File

@ -974,7 +974,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
boolean refreshFragment = (threadId != this.threadId); boolean refreshFragment = (threadId != this.threadId);
this.threadId = threadId; this.threadId = threadId;
if (fragment == null) { if (fragment == null || !fragment.isVisible() || isFinishing()) {
return; return;
} }