1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-21 06:38:37 +00:00

Erase account warning on disabling sync

This commit is contained in:
M66B 2019-07-23 17:57:37 +02:00
parent e5c14ff25d
commit 3704960fd4

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;