1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-12 12:35:04 -05:00

Finally get the interaction right between integrated folder,

searchable folders, and the various search strategies.

Integration takes precedence over searchability.  The Integrated Inbox
doesn't care about folder searchability.  Nor does an unread or flag
search on specific folders.

Searches on specific accounts always go for displayable folders.  That
might need to change so that searches on specific accounts can be on
DISPLAYABLE or ALL, but never NEVER.  But in the current approach,
account-specific searches are done from the Accounts Activity, which
has an unread counter based on displayable non-special folders, so the
present implementation is the most logical for now.
This commit is contained in:
Daniel Applebaum 2010-04-25 16:43:11 +00:00
parent 267f02fc48
commit d7f18c7e35

View File

@ -763,7 +763,7 @@ public class MessagingController implements Runnable
displayableOnly = true;
noSpecialFolders = true;
}
else
else if (integrate == false && folderNames == null)
{
Account.Searchable searchableFolders = account.getSearchableFolders();
switch (searchableFolders)