mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Optional inbox (2)
This commit is contained in:
@@ -672,23 +672,6 @@ public class EmailService implements AutoCloseable {
|
||||
|
||||
EntityFolder.guessTypes(folders, getStore().getDefaultFolder().getSeparator());
|
||||
|
||||
boolean inbox = false;
|
||||
for (EntityFolder folder : folders)
|
||||
if (EntityFolder.INBOX.equals(folder.type)) {
|
||||
inbox = true;
|
||||
break;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user