Browse Source

Prevent deleting drafts

main
M66B 6 years ago
parent
commit
bbf28c39d5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/eu/faircode/email/AdapterFolder.java

+ 2
- 1
app/src/main/java/eu/faircode/email/AdapterFolder.java View File

@ -166,7 +166,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
popupMenu.getMenu().add(Menu.NONE, action_sync, 1, R.string.title_synchronize_now); popupMenu.getMenu().add(Menu.NONE, action_sync, 1, R.string.title_synchronize_now);
popupMenu.getMenu().findItem(action_sync).setEnabled("connected".equals(accountState)); popupMenu.getMenu().findItem(action_sync).setEnabled("connected".equals(accountState));
popupMenu.getMenu().add(Menu.NONE, action_delete, 2, R.string.title_delete_local);
if (!EntityFolder.DRAFTS.equals(folder.type))
popupMenu.getMenu().add(Menu.NONE, action_delete, 2, R.string.title_delete_local);
if (folder.account != null) if (folder.account != null)
popupMenu.getMenu().add(Menu.NONE, action_edit, 3, R.string.title_edit_properties); popupMenu.getMenu().add(Menu.NONE, action_edit, 3, R.string.title_edit_properties);


Loading…
Cancel
Save