mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Support for non selectable folders
This commit is contained in:
@@ -548,7 +548,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
String fullName = ifolder.getFullName();
|
||||
String[] attrs = ((IMAPFolder) ifolder).getAttributes();
|
||||
Log.i(fullName + " attrs=" + TextUtils.join(" ", attrs));
|
||||
String type = EntityFolder.getType(attrs, fullName);
|
||||
String type = EntityFolder.getType(attrs, fullName, true);
|
||||
|
||||
if (type != null) {
|
||||
// Create entry
|
||||
@@ -886,7 +886,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
String fullName = ifolder.getFullName();
|
||||
String[] attrs = ((IMAPFolder) ifolder).getAttributes();
|
||||
Log.i(fullName + " attrs=" + TextUtils.join(" ", attrs));
|
||||
String type = EntityFolder.getType(attrs, fullName);
|
||||
String type = EntityFolder.getType(attrs, fullName, true);
|
||||
|
||||
if (EntityFolder.INBOX.equals(type)) {
|
||||
inbox = new EntityFolder();
|
||||
@@ -1215,7 +1215,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
long account = args.getLong("account");
|
||||
|
||||
DB db = DB.getInstance(context);
|
||||
List<EntityFolder> folders = db.folder().getFolders(account);
|
||||
List<EntityFolder> folders = db.folder().getFolders(account, true);
|
||||
|
||||
if (folders != null && folders.size() > 0)
|
||||
Collections.sort(folders, folders.get(0).getComparator(null));
|
||||
|
||||
Reference in New Issue
Block a user