Initially sync 7 days, default sync 1 day

This commit is contained in:
M66B
2018-12-11 12:18:26 +01:00
parent f8b9640ca1
commit afe3832364
10 changed files with 1285 additions and 27 deletions

View File

@@ -515,8 +515,8 @@ public class FragmentAccount extends FragmentEx {
folder.name = ifolder.getFullName();
folder.type = (type == null ? EntityFolder.USER : type);
folder.synchronize = (type != null && EntityFolder.SYSTEM_FOLDER_SYNC.contains(type));
folder.sync_days = (type == null ? EntityFolder.DEFAULT_USER_SYNC : EntityFolder.DEFAULT_SYSTEM_SYNC);
folder.keep_days = folder.sync_days;
folder.sync_days = EntityFolder.DEFAULT_SYNC;
folder.keep_days = EntityFolder.DEFAULT_KEEP;
}
result.folders.add(folder);
@@ -767,8 +767,8 @@ public class FragmentAccount extends FragmentEx {
inbox.synchronize = true;
inbox.unified = true;
inbox.notify = true;
inbox.sync_days = EntityFolder.DEFAULT_INBOX_SYNC;
inbox.keep_days = inbox.sync_days;
inbox.sync_days = EntityFolder.DEFAULT_SYNC;
inbox.keep_days = EntityFolder.DEFAULT_KEEP;
folders.add(inbox);