Support for non selectable folders

This commit is contained in:
M66B
2019-07-07 08:17:27 +02:00
parent e8ced5da45
commit 9f6c1f3ea9
11 changed files with 1838 additions and 17 deletions

View File

@@ -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));