execute some dismiss error notification and reset error in background

This commit is contained in:
Daniel Gultsch 2019-04-17 12:49:36 +02:00
parent 98734353aa
commit 39bc067405
1 changed files with 2 additions and 2 deletions

View File

@ -920,7 +920,7 @@ public class XmppConnectionService extends Service {
}
}
if (account.setShowErrorNotification(true)) {
databaseBackend.updateAccount(account);
mDatabaseWriterExecutor.execute(() -> databaseBackend.updateAccount(account));
}
}
mNotificationService.updateErrorNotification();
@ -931,7 +931,7 @@ public class XmppConnectionService extends Service {
if (account.hasErrorStatus()) {
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": dismissing error notification");
if (account.setShowErrorNotification(false)) {
databaseBackend.updateAccount(account);
mDatabaseWriterExecutor.execute(() -> databaseBackend.updateAccount(account));
}
}
}