execute some dismiss error notification and reset error in background
This commit is contained in:
parent
98734353aa
commit
39bc067405
|
@ -920,7 +920,7 @@ public class XmppConnectionService extends Service {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (account.setShowErrorNotification(true)) {
|
if (account.setShowErrorNotification(true)) {
|
||||||
databaseBackend.updateAccount(account);
|
mDatabaseWriterExecutor.execute(() -> databaseBackend.updateAccount(account));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mNotificationService.updateErrorNotification();
|
mNotificationService.updateErrorNotification();
|
||||||
|
@ -931,7 +931,7 @@ public class XmppConnectionService extends Service {
|
||||||
if (account.hasErrorStatus()) {
|
if (account.hasErrorStatus()) {
|
||||||
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": dismissing error notification");
|
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": dismissing error notification");
|
||||||
if (account.setShowErrorNotification(false)) {
|
if (account.setShowErrorNotification(false)) {
|
||||||
databaseBackend.updateAccount(account);
|
mDatabaseWriterExecutor.execute(() -> databaseBackend.updateAccount(account));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue