From 8d264b159eef75345833fc68eb637ae97f5f1eef Mon Sep 17 00:00:00 2001 From: Koji Arai Date: Mon, 18 Jul 2011 00:53:49 +0900 Subject: [PATCH] Workaround for below issue. 1. Show a message in MessageView. 2. Press HOME button to back home. 3. Re-launch the K-9 and select another message. 4. Show first selected message. See also: https://github.com/k9mail/k-9/commit/fix_activity_stack --- src/com/fsck/k9/activity/MessageView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/fsck/k9/activity/MessageView.java b/src/com/fsck/k9/activity/MessageView.java index 937e4e035..0698e90d1 100644 --- a/src/com/fsck/k9/activity/MessageView.java +++ b/src/com/fsck/k9/activity/MessageView.java @@ -368,6 +368,7 @@ public class MessageView extends K9Activity implements OnClickListener { i.putExtra(EXTRA_MESSAGE_REFERENCE, messRef); i.putParcelableArrayListExtra(EXTRA_MESSAGE_REFERENCES, messReferences); i.putExtra(EXTRA_ORIGINATING_INTENT, originatingIntent); + i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_NEW_TASK ); if (extras != null) { i.putExtras(extras); }