mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-15 05:55:06 -05:00
Simplify the logic for "should I search this folder" using our new
helper
This commit is contained in:
parent
a974f7188c
commit
734cbf856d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user