mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
f359e42eb0
commit
a50cf29cfd
|
@ -1444,17 +1444,11 @@ public class FragmentAccount extends FragmentBase {
|
|||
}
|
||||
}
|
||||
|
||||
Map<String, EntityFolder> map = new HashMap<>();
|
||||
for (EntityFolder folder : folders) {
|
||||
EntityFolder f = db.folder().getFolderByName(account.id, folder.name);
|
||||
if (f != null)
|
||||
map.put(folder.name, f);
|
||||
}
|
||||
|
||||
db.folder().setFoldersUser(account.id);
|
||||
|
||||
for (EntityFolder folder : folders) {
|
||||
EntityFolder existing = map.get(folder.name);
|
||||
Log.i("Checking folder=" + folder.name + " type=" + folder.type);
|
||||
EntityFolder existing = db.folder().getFolderByName(account.id, folder.name);
|
||||
if (existing == null) {
|
||||
folder.id = null;
|
||||
folder.account = account.id;
|
||||
|
|
Loading…
Reference in New Issue