Reset account/identity error on inline sync disable

pull/157/head
M66B 6 years ago
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…
Cancel
Save