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
This commit is contained in:
Danny Baumann 2013-02-11 09:09:57 +01:00
parent 3807d2881d
commit ee65217ac3
1 changed files with 4 additions and 0 deletions

View File

@ -236,6 +236,10 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
removeMessageListFragment();
removeMessageViewFragment();
mMessageReference = null;
mSearch = null;
mFolderName = null;
decodeExtras(intent);
initializeDisplayMode(null);
initializeFragments();