Should save enabled account/identity with error

pull/194/merge
M66B 3 years ago
parent 582b0ca0f1
commit 38ae04f892

@ -1035,6 +1035,8 @@ public class FragmentAccount extends FragmentBase {
return true; return true;
if (!Objects.equals(account.use_received, use_received)) if (!Objects.equals(account.use_received, use_received))
return true; return true;
if (account.error != null && account.synchronize)
return true;
EntityFolder edrafts = db.folder().getFolderByType(account.id, EntityFolder.DRAFTS); EntityFolder edrafts = db.folder().getFolderByType(account.id, EntityFolder.DRAFTS);
if (!Objects.equals(edrafts == null ? null : edrafts.id, drafts == null ? null : drafts.id)) if (!Objects.equals(edrafts == null ? null : edrafts.id, drafts == null ? null : drafts.id))

@ -899,6 +899,8 @@ public class FragmentIdentity extends FragmentBase {
return true; return true;
if (user_max_size != null && !Objects.equals(identity.max_size, user_max_size)) if (user_max_size != null && !Objects.equals(identity.max_size, user_max_size))
return true; return true;
if (identity.error != null && identity.synchronize)
return true;
return false; return false;
} }

Loading…
Cancel
Save