From 075377e8f317f59f98a386e91c9ad5d16d622165 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 12 Sep 2018 10:07:36 +0000 Subject: [PATCH] Fixed resume creating new message The fragment might be paused before a new draft was created --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 591a9311..7c42cc71 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -371,7 +371,7 @@ public class FragmentCompose extends FragmentEx { } else { long id = savedInstanceState.getLong("working"); Bundle args = new Bundle(); - args.putString("action", "edit"); + args.putString("action", id < 0 ? "new" : "edit"); args.putLong("id", id); args.putLong("account", -1); args.putLong("reference", -1);