Skip to content

Commit

Permalink
Hide refile batch actions in the message list for POP3 accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
cketti committed Feb 25, 2012
1 parent 3632978 commit 1af5476
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/com/fsck/k9/activity/MessageList.java
Expand Up @@ -1611,6 +1611,19 @@ public boolean onPrepareOptionsMenu(Menu menu) {
if (K9.FOLDER_NONE.equalsIgnoreCase(mAccount.getSpamFolderName())) { if (K9.FOLDER_NONE.equalsIgnoreCase(mAccount.getSpamFolderName())) {
menu.findItem(R.id.batch_spam_op).setVisible(false); menu.findItem(R.id.batch_spam_op).setVisible(false);
} }

if (!mController.isMoveCapable(mAccount)) {
// FIXME: Really we want to do this for all local-only folders
if (mCurrentFolder != null &&
!mAccount.getInboxFolderName().equals(mCurrentFolder.name)) {
menu.findItem(R.id.check_mail).setVisible(false);
}
menu.findItem(R.id.batch_archive_op).setVisible(false);
menu.findItem(R.id.batch_spam_op).setVisible(false);
menu.findItem(R.id.batch_move_op).setVisible(false);
menu.findItem(R.id.batch_copy_op).setVisible(false);
menu.findItem(R.id.expunge).setVisible(false);
}
} }


boolean newFlagState = computeBatchDirection(true); boolean newFlagState = computeBatchDirection(true);
Expand Down

0 comments on commit 1af5476

Please sign in to comment.