1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 01:28:50 -05:00

new helper routine for checking to see if a folder is special.

This commit is contained in:
Jesse Vincent 2011-01-16 21:33:34 +00:00
parent 5fb8b7c7e5
commit 574c544d64

View File

@ -924,6 +924,29 @@ public class Account implements BaseAccount
this.mDeletePolicy = deletePolicy; this.mDeletePolicy = deletePolicy;
} }
public boolean isSpecialFolder(String folderName)
{
if ( folderName != null && (folderName.equalsIgnoreCase(K9.INBOX) ||
folderName.equals(getTrashFolderName()) ||
folderName.equals(getDraftsFolderName()) ||
folderName.equals(getArchiveFolderName()) ||
folderName.equals(getSpamFolderName()) ||
folderName.equals(getOutboxFolderName()) ||
folderName.equals(getSentFolderName()) ||
folderName.equals(getErrorFolderName())))
{
return true;
}
else
{
return false;
}
}
public synchronized String getDraftsFolderName() public synchronized String getDraftsFolderName()
{ {
return mDraftsFolderName; return mDraftsFolderName;