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:
parent
e5c14ff25d
commit
3704960fd4
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue