1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Simplify the logic for "should I search this folder" using our new

helper
This commit is contained in:
Jesse Vincent 2011-01-16 21:33:50 +00:00
parent a974f7188c
commit 734cbf856d

View File

@ -848,12 +848,8 @@ public class MessagingController implements Runnable
}
}
// Never exclude the INBOX (see issue 1817)
else if (noSpecialFolders && !localFolderName.equals(K9.INBOX) && (
localFolderName.equals(account.getTrashFolderName()) ||
localFolderName.equals(account.getOutboxFolderName()) ||
localFolderName.equals(account.getDraftsFolderName()) ||
localFolderName.equals(account.getSentFolderName()) ||
localFolderName.equals(account.getErrorFolderName())))
else if (noSpecialFolders && !localFolderName.equalsIgnoreCase(K9.INBOX) &&
!localFolderName.equals(account.getArchiveFolderName()) && account.isSpecialFolder(localFolderName))
{
include = false;
}