aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-04-26 21:48:20 +0200
committerChristian Schneppe <christian@pix-art.de>2019-04-26 21:48:20 +0200
commitea6ac8f3eae1f0b8922d04ae0291857824801eaa (patch)
tree603ce3c271b0cd50e4d0370c8404aebfd59520ee /src/main/java/de/pixart/messenger
parent5a4e1ada1459f14257b1695c42e20b378b574a74 (diff)
execute some dismiss error notification and reset error in background
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java4
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));
}
}
}