mirror of https://github.com/M66B/FairEmail.git
Erase account warning on disabling sync
This commit is contained in:
parent
e5c14ff25d
commit
3704960fd4
|
@ -243,8 +243,10 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
||||||
boolean sync = args.getBoolean("sync");
|
boolean sync = args.getBoolean("sync");
|
||||||
|
|
||||||
DB db = DB.getInstance(context);
|
DB db = DB.getInstance(context);
|
||||||
if (!sync)
|
if (!sync) {
|
||||||
|
db.account().setAccountWarning(id, null);
|
||||||
db.account().setAccountError(id, null);
|
db.account().setAccountError(id, null);
|
||||||
|
}
|
||||||
db.account().setAccountSynchronize(id, sync);
|
db.account().setAccountSynchronize(id, sync);
|
||||||
|
|
||||||
return sync;
|
return sync;
|
||||||
|
|
Loading…
Reference in New Issue