If messagelist started from Unified localsearch, verify if we are really dealing with multiple accounts. If not then set SingleAccountMode anyway.

This commit is contained in:
dzan 2013-04-14 14:47:45 +02:00
parent 3d884a8f1c
commit 33cf1bc222
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}