Erase account warning on disabling sync

This commit is contained in:
M66B 2019-07-23 17:57:37 +02:00
parent e5c14ff25d
commit 3704960fd4
1 changed files with 3 additions and 1 deletions

View File

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