aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/services
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-01-25 22:30:11 +0100
committerChristian Schneppe <christian@pix-art.de>2019-01-25 22:30:11 +0100
commit7c45fad36aea764eb274824bca3bbc5def13fd4f (patch)
treee3c2b107e403e997c3864204028923d57f9e95b0 /src/main/java/de/pixart/messenger/services
parentd93d92dee3add2bf293a177fd5d8afdbd691f684 (diff)
synchronize around notification update from corrected messages
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r--src/main/java/de/pixart/messenger/services/NotificationService.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java
index 9d0eeea2b..8ded39d50 100644
--- a/src/main/java/de/pixart/messenger/services/NotificationService.java
+++ b/src/main/java/de/pixart/messenger/services/NotificationService.java
@@ -383,7 +383,13 @@ public class NotificationService {
mBuilder.setColor(ContextCompat.getColor(mXmppConnectionService, R.color.primary));
}
- public void updateNotification(final boolean notify) {
+ public void updateNotification() {
+ synchronized (notifications) {
+ updateNotification(false);
+ }
+ }
+
+ private void updateNotification(final boolean notify) {
updateNotification(notify, null, false);
}