From 005241d97b217d0a43594f050300da7861136d97 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Wed, 9 Oct 2013 15:53:39 -0400 Subject: [PATCH] Issue 4594: draft not saved with shared info When another app shared info with K-9 Mail, the draft was not always being saved when the "Save as draft" menu option was selected. --- src/com/fsck/k9/activity/MessageCompose.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index 169878999..ae4827648 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -736,6 +736,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, if (initFromIntent(intent)) { mAction = Action.COMPOSE; + mDraftNeedsSaving = true; } else { String action = intent.getAction(); if (ACTION_COMPOSE.equals(action)) { @@ -873,8 +874,6 @@ public class MessageCompose extends K9Activity implements OnClickListener, mEncryptLayout.setVisibility(View.GONE); } - mDraftNeedsSaving = false; - // Set font size of input controls int fontSize = mFontSizes.getMessageComposeInput(); mFontSizes.setViewTextSize(mToView, fontSize);