mirror of https://github.com/M66B/FairEmail.git
Reset account/identity error on inline sync disable
This commit is contained in:
parent
9f6c1f3ea9
commit
697f72a30f
|
@ -244,6 +244,8 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
|||
boolean sync = args.getBoolean("sync");
|
||||
|
||||
DB db = DB.getInstance(context);
|
||||
if (!sync)
|
||||
db.account().setAccountError(id, null);
|
||||
db.account().setAccountSynchronize(id, sync);
|
||||
|
||||
return sync;
|
||||
|
|
|
@ -192,6 +192,8 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
|
|||
boolean sync = args.getBoolean("sync");
|
||||
|
||||
DB db = DB.getInstance(context);
|
||||
if (!sync)
|
||||
db.identity().setIdentityError(id, null);
|
||||
db.identity().setIdentitySynchronize(id, sync);
|
||||
|
||||
return sync;
|
||||
|
|
Loading…
Reference in New Issue