Allow accounts without inbox

This commit is contained in:
M66B
2021-02-07 15:36:26 +01:00
parent 17e74fc1b6
commit 0f32aa66a8
4 changed files with 23 additions and 5 deletions

View File

@@ -679,8 +679,15 @@ public class EmailService implements AutoCloseable {
break;
}
if (!inbox)
throw new IllegalArgumentException(context.getString(R.string.title_setup_no_inbox));
if (!inbox) {
EntityFolder in = new EntityFolder();
in.name = EntityFolder.INBOX;
in.type = EntityFolder.INBOX;
in.setProperties();
in.selectable = false;
folders.add(in);
//throw new IllegalArgumentException(context.getString(R.string.title_setup_no_inbox));
}
return folders;
}