From ee65217ac3f9e9d7f7edbec2aa85d95f47f12f01 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Mon, 11 Feb 2013 09:09:57 +0100 Subject: [PATCH] Properly clear out old state when receiving a new intent. This fixes the following scenario: - Get a mail notification - Click on notification -> message view appears - Press home - Get a new notification - Click on notification -> last instead of new message is displayed --- src/com/fsck/k9/activity/MessageList.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index 50fd244cb..0c2bdf3b6 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -236,6 +236,10 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme removeMessageListFragment(); removeMessageViewFragment(); + mMessageReference = null; + mSearch = null; + mFolderName = null; + decodeExtras(intent); initializeDisplayMode(null); initializeFragments();