1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

Allow swipe/ask for POP3 accounts

This commit is contained in:
M66B 2020-07-01 08:11:28 +02:00
parent 80fdd085a4
commit 027b6638d5
2 changed files with 9 additions and 2 deletions

View file

@ -1913,8 +1913,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
popupMenu.getMenu().add(Menu.NONE, R.string.title_unhide, 4, R.string.title_unhide);
popupMenu.getMenu().add(Menu.NONE, R.string.title_flag_color, 5, R.string.title_flag_color);
popupMenu.getMenu().add(Menu.NONE, R.string.title_move, 6, R.string.title_move);
popupMenu.getMenu().add(Menu.NONE, R.string.title_report_spam, 7, R.string.title_report_spam);
if (message.accountProtocol == EntityAccount.TYPE_IMAP) {
popupMenu.getMenu().add(Menu.NONE, R.string.title_move, 6, R.string.title_move);
popupMenu.getMenu().add(Menu.NONE, R.string.title_report_spam, 7, R.string.title_report_spam);
}
popupMenu.getMenu().add(Menu.NONE, R.string.title_delete_permanently, 8, R.string.title_delete_permanently);
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {

View file

@ -738,6 +738,11 @@ public class FragmentPop extends FragmentBase {
private List<EntityFolder> getSwipeActions() {
List<EntityFolder> folders = new ArrayList<>();
EntityFolder ask = new EntityFolder();
ask.id = FragmentAccount.SWIPE_ACTION_ASK;
ask.name = getString(R.string.title_ask_what);
folders.add(ask);
EntityFolder seen = new EntityFolder();
seen.id = FragmentAccount.SWIPE_ACTION_SEEN;
seen.name = getString(R.string.title_seen);