diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 5ba0355a8..5de9a7501 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -1022,7 +1022,7 @@ public class XmppConnectionService extends Service { } } if (account.setShowErrorNotification(true)) { - databaseBackend.updateAccount(account); + mDatabaseWriterExecutor.execute(() -> databaseBackend.updateAccount(account)); } } mNotificationService.updateErrorNotification(); @@ -1033,7 +1033,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)); } } } |