mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Skip onNewIntent if activity is finishing
We didn't call through to onCreate(), so everything isn't setup. Fixes #2971 // FREEBIE
This commit is contained in:
parent
4a261bcf68
commit
31224014cc
@ -245,6 +245,11 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
@Override
|
||||
protected void onNewIntent(Intent intent) {
|
||||
Log.w(TAG, "onNewIntent()");
|
||||
|
||||
if (isFinishing()) {
|
||||
Log.w(TAG, "Activity is finishing...");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Util.isEmpty(composeText) || attachmentManager.isAttachmentPresent()) {
|
||||
saveDraft();
|
||||
|
Loading…
Reference in New Issue
Block a user