Reset account/identity error on inline sync disable

This commit is contained in:
M66B
2019-07-07 08:42:46 +02:00
parent 9f6c1f3ea9
commit 697f72a30f
2 changed files with 4 additions and 0 deletions

View File

@@ -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;