From 38ae04f89245a629a401077d8739a6fa8601bd59 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 31 Oct 2021 10:19:03 +0100 Subject: [PATCH] Should save enabled account/identity with error --- app/src/main/java/eu/faircode/email/FragmentAccount.java | 2 ++ app/src/main/java/eu/faircode/email/FragmentIdentity.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index 7fbfb408c5..3bf2663561 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccount.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java @@ -1035,6 +1035,8 @@ public class FragmentAccount extends FragmentBase { return true; if (!Objects.equals(account.use_received, use_received)) return true; + if (account.error != null && account.synchronize) + return true; EntityFolder edrafts = db.folder().getFolderByType(account.id, EntityFolder.DRAFTS); if (!Objects.equals(edrafts == null ? null : edrafts.id, drafts == null ? null : drafts.id)) diff --git a/app/src/main/java/eu/faircode/email/FragmentIdentity.java b/app/src/main/java/eu/faircode/email/FragmentIdentity.java index 3d515b7b91..e5511d4500 100644 --- a/app/src/main/java/eu/faircode/email/FragmentIdentity.java +++ b/app/src/main/java/eu/faircode/email/FragmentIdentity.java @@ -899,6 +899,8 @@ public class FragmentIdentity extends FragmentBase { return true; if (user_max_size != null && !Objects.equals(identity.max_size, user_max_size)) return true; + if (identity.error != null && identity.synchronize) + return true; return false; }