kopia lustrzana https://github.com/ryukoposting/Signal-Android
Skip onNewIntent if activity is finishing
We didn't call through to onCreate(), so everything isn't setup. Fixes #2971 // FREEBIEfork-5.53.8
rodzic
4a261bcf68
commit
31224014cc
|
@ -246,6 +246,11 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||||
protected void onNewIntent(Intent intent) {
|
protected void onNewIntent(Intent intent) {
|
||||||
Log.w(TAG, "onNewIntent()");
|
Log.w(TAG, "onNewIntent()");
|
||||||
|
|
||||||
|
if (isFinishing()) {
|
||||||
|
Log.w(TAG, "Activity is finishing...");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!Util.isEmpty(composeText) || attachmentManager.isAttachmentPresent()) {
|
if (!Util.isEmpty(composeText) || attachmentManager.isAttachmentPresent()) {
|
||||||
saveDraft();
|
saveDraft();
|
||||||
attachmentManager.clear();
|
attachmentManager.clear();
|
||||||
|
|
Ładowanie…
Reference in New Issue