From 33cf1bc22225b0a8bc9a4b880e61af2bc3aa1530 Mon Sep 17 00:00:00 2001 From: dzan Date: Sun, 14 Apr 2013 14:47:45 +0200 Subject: [PATCH] If messagelist started from Unified localsearch, verify if we are really dealing with multiple accounts. If not then set SingleAccountMode anyway. --- src/com/fsck/k9/fragment/MessageListFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index ea490dec8..e87cdde10 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -916,6 +916,11 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick for (int i = 0, len = accounts.length; i < len; i++) { mAccountUuids[i] = accounts[i].getUuid(); } + + if (mAccountUuids.length == 1) { + mSingleAccountMode = true; + mAccount = accounts[0]; + } } else { mAccountUuids = accountUuids; }