Fixed folder types

This commit is contained in:
M66B
2018-12-31 10:04:18 +00:00
parent 3ee30a8662
commit 79937006ff
3 changed files with 8 additions and 3 deletions

View File

@@ -816,8 +816,12 @@ public class FragmentAccount extends FragmentEx {
}
db.folder().setFoldersUser(account.id);
for (EntityFolder folder : folders) {
folder.level = EntityFolder.getLevel(separator, folder.name);
if (account.prefix != null && folder.name.startsWith(account.prefix + separator))
folder.display = folder.name.substring(account.prefix.length() + 1);
EntityFolder existing = db.folder().getFolderByName(account.id, folder.name);
if (existing == null) {
folder.account = account.id;