Erase account warning on disabling sync

pull/159/head
M66B 5 years ago
parent e5c14ff25d
commit 3704960fd4

@ -243,8 +243,10 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
boolean sync = args.getBoolean("sync");
DB db = DB.getInstance(context);
if (!sync)
if (!sync) {
db.account().setAccountWarning(id, null);
db.account().setAccountError(id, null);
}
db.account().setAccountSynchronize(id, sync);
return sync;

Loading…
Cancel
Save