1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Don't display Archive/Spam batch operations when corresponding folders are unset

This commit is contained in:
Fiouz 2010-07-30 09:58:26 +00:00
parent d8a73b195d
commit 3bbb6ae050

View File

@ -1463,6 +1463,14 @@ public class MessageList
{
menu.findItem(R.id.expunge).setVisible(false);
}
if (K9.FOLDER_NONE.equalsIgnoreCase(mAccount.getArchiveFolderName()))
{
menu.findItem(R.id.batch_archive_op).setVisible(false);
}
if (K9.FOLDER_NONE.equalsIgnoreCase(mAccount.getSpamFolderName()))
{
menu.findItem(R.id.batch_spam_op).setVisible(false);
}
}
boolean newFlagState = computeBatchDirection(true);