Allow swipe if target folders exists only

This commit is contained in:
M66B
2018-10-22 18:02:06 +00:00
parent 563df86870
commit feba289478
5 changed files with 39 additions and 13 deletions

View File

@@ -628,8 +628,6 @@ public class FragmentAccount extends FragmentEx {
interval = "9";
if (synchronize && drafts == null)
throw new Throwable(getContext().getString(R.string.title_no_drafts));
if (synchronize && trash == null)
throw new Throwable(getContext().getString(R.string.title_no_trash));
if (Color.TRANSPARENT == color)
color = null;
@@ -731,8 +729,8 @@ public class FragmentAccount extends FragmentEx {
folders.add(junk);
}
db.folder().setFoldersUser(account.id);
for (EntityFolder folder : folders) {
db.folder().setFolderUser(account.id, folder.type);
EntityFolder existing = db.folder().getFolderByName(account.id, folder.name);
if (existing == null) {
folder.account = account.id;