Browse Source

Prevent deleting system folders

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

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

@ -314,8 +314,7 @@ public class FragmentFolder extends FragmentEx {
etRename.setEnabled(folder == null || EntityFolder.USER.equals(folder.type));
cbSynchronize.setEnabled(false);
btnSave.setEnabled(true);
ibDelete.setEnabled(true);
ibDelete.setVisibility(folder == null ? View.GONE : View.VISIBLE);
ibDelete.setVisibility(folder == null || !EntityFolder.USER.equals(folder.type) ? View.GONE : View.VISIBLE);
Bundle args = new Bundle();
args.putLong("account", folder == null ? account : folder.account);


Loading…
Cancel
Save