Default no download for archive, trash and junk

This commit is contained in:
M66B
2019-01-05 07:52:08 +00:00
parent 6dcac8ff91
commit 988973135d
3 changed files with 13 additions and 2 deletions

View File

@@ -338,11 +338,13 @@ public class FragmentSetup extends FragmentEx {
}
if (selectable && type != null) {
int sync = EntityFolder.SYSTEM_FOLDER_SYNC.indexOf(type);
EntityFolder folder = new EntityFolder();
folder.name = ifolder.getFullName();
folder.type = type;
folder.level = EntityFolder.getLevel(separator, folder.name);
folder.synchronize = EntityFolder.SYSTEM_FOLDER_SYNC.contains(type);
folder.synchronize = (sync >= 0);
folder.download = (sync < 0 ? true : EntityFolder.SYSTEM_FOLDER_DOWNLOAD.get(sync));
folder.sync_days = EntityFolder.DEFAULT_SYNC;
folder.keep_days = EntityFolder.DEFAULT_KEEP;
folders.add(folder);