mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Don't display Archive/Spam batch operations when corresponding folders are unset
This commit is contained in:
parent
d8a73b195d
commit
3bbb6ae050
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user