Skip to content
Browse files

Hide refile batch actions in the message list for POP3 accounts

  • Loading branch information...
1 parent 3632978 commit 1af5476b9609131e35a54d6e2c3a0c582f1a06d3 @cketti cketti committed Feb 25, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/com/fsck/k9/activity/MessageList.java
View
13 src/com/fsck/k9/activity/MessageList.java
@@ -1611,6 +1611,19 @@ public boolean onPrepareOptionsMenu(Menu menu) {
if (K9.FOLDER_NONE.equalsIgnoreCase(mAccount.getSpamFolderName())) {
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);

0 comments on commit 1af5476

Please sign in to comment.
Something went wrong with that request. Please try again.