mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
new helper routine for checking to see if a folder is special.
This commit is contained in:
parent
5fb8b7c7e5
commit
574c544d64
@ -924,6 +924,29 @@ public class Account implements BaseAccount
|
||||
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()
|
||||
{
|
||||
return mDraftsFolderName;
|
||||
|
Loading…
Reference in New Issue
Block a user