mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
simplify our "should we count messages in this folder" logic for the
purposes of account stats generation
This commit is contained in:
parent
76e1165fea
commit
c5846b4202
@ -654,15 +654,10 @@ public class Account implements BaseAccount
|
||||
Folder.FolderClass fMode = localFolder.getDisplayClass();
|
||||
|
||||
// Always get stats about the INBOX (see issue 1817)
|
||||
if (folder.getName().equals(K9.INBOX) || (
|
||||
!folder.getName().equals(getTrashFolderName()) &&
|
||||
!folder.getName().equals(getDraftsFolderName()) &&
|
||||
!folder.getName().equals(getArchiveFolderName()) &&
|
||||
!folder.getName().equals(getSpamFolderName()) &&
|
||||
!folder.getName().equals(getOutboxFolderName()) &&
|
||||
!folder.getName().equals(getSentFolderName()) &&
|
||||
!folder.getName().equals(getErrorFolderName())))
|
||||
if (!folder.getName().equals(K9.INBOX) && isSpecialFolder(folder.getName()) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (aMode == Account.FolderMode.NONE)
|
||||
{
|
||||
continue;
|
||||
@ -687,7 +682,6 @@ public class Account implements BaseAccount
|
||||
flaggedMessageCount += folder.getFlaggedMessageCount();
|
||||
|
||||
}
|
||||
}
|
||||
long folderEvalEnd = System.currentTimeMillis();
|
||||
stats.unreadMessageCount = unreadMessageCount;
|
||||
stats.flaggedMessageCount = flaggedMessageCount;
|
||||
|
Loading…
Reference in New Issue
Block a user