1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

Hide "Expunge" menu item for all folders in a POP3 account

Also hide "Check mail" for all folders except the Inbox (POP3).
This commit is contained in:
cketti 2012-02-25 04:28:08 +01:00
parent 1af5476b96
commit 8e7950164b

View File

@ -739,6 +739,15 @@ public class FolderList extends K9ListActivity {
menu.findItem(R.id.expunge).setVisible(false);
}
if (!MessagingController.getInstance(getApplication()).isMoveCapable(mAccount)) {
// FIXME: Really we want to do this for all local-only folders
if (!mAccount.getInboxFolderName().equals(folder.name)) {
menu.findItem(R.id.check_mail).setVisible(false);
}
menu.findItem(R.id.expunge).setVisible(false);
}
menu.setHeaderTitle(folder.displayName);
}