From 89012b0f8bdd3ee9618af5aa96dc82c13175af7e Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 8 May 2021 11:49:24 +0200 Subject: [PATCH] synchronize startRinging() to not create multiple vibrate futures --- .../eu/siacs/conversations/services/NotificationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index 6ccd2b74f..bbde8e904 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -397,7 +397,7 @@ public class NotificationService { notify(DELIVERY_FAILED_NOTIFICATION_ID, summaryNotification); } - public void startRinging(final AbstractJingleConnection.Id id, final Set media) { + public synchronized void startRinging(final AbstractJingleConnection.Id id, final Set media) { showIncomingCallNotification(id, media); final NotificationManager notificationManager = (NotificationManager) mXmppConnectionService.getSystemService(Context.NOTIFICATION_SERVICE); final int currentInterruptionFilter;