Browse Source

Reset error on disabling sync

main
M66B 6 years ago
parent
commit
cb068873f0
2 changed files with 5 additions and 0 deletions
  1. +3
    -0
      app/src/main/java/eu/faircode/email/FragmentAccount.java
  2. +2
    -0
      app/src/main/java/eu/faircode/email/FragmentFolder.java

+ 3
- 0
app/src/main/java/eu/faircode/email/FragmentAccount.java View File

@ -448,6 +448,9 @@ public class FragmentAccount extends FragmentEx {
else
account.id = db.account().insertAccount(account);
if (!synchronize)
db.account().setAccountError(account.id, null);
List<EntityFolder> folders = new ArrayList<>();
EntityFolder inbox = new EntityFolder();


+ 2
- 0
app/src/main/java/eu/faircode/email/FragmentFolder.java View File

@ -89,6 +89,8 @@ public class FragmentFolder extends FragmentEx {
db.beginTransaction();
db.folder().setFolderProperties(id, synchronize, days);
if (!synchronize)
db.folder().setFolderError(id, null);
EntityFolder folder = db.folder().getFolder(id);
if (!folder.synchronize)


Loading…
Cancel
Save