synchronize startRinging() to not create multiple vibrate futures

This commit is contained in:
Daniel Gultsch 2021-05-08 11:49:24 +02:00
parent 7476dccc0e
commit 89012b0f8b
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ public class NotificationService {
notify(DELIVERY_FAILED_NOTIFICATION_ID, summaryNotification);
}
public void startRinging(final AbstractJingleConnection.Id id, final Set<Media> media) {
public synchronized void startRinging(final AbstractJingleConnection.Id id, final Set<Media> media) {
showIncomingCallNotification(id, media);
final NotificationManager notificationManager = (NotificationManager) mXmppConnectionService.getSystemService(Context.NOTIFICATION_SERVICE);
final int currentInterruptionFilter;