Delete virtual parent folders

pull/187/head
M66B 4 years ago
parent ec8270a624
commit cc42940dff

@ -1766,7 +1766,9 @@ class Core {
Log.i("Delete local count=" + local.size());
for (String name : local.keySet()) {
EntityFolder folder = local.get(name);
if (EntityFolder.USER.equals(folder.type)) {
List<EntityFolder> childs = parentFolders.get(name);
if (EntityFolder.USER.equals(folder.type) ||
childs == null || childs.size() == 0) {
Log.i(name + " delete");
db.folder().deleteFolder(account.id, name);
} else

Loading…
Cancel
Save