~singpolyma/cheogram-android

89012b0f8bdd3ee9618af5aa96dc82c13175af7e — Daniel Gultsch 3 years ago 7476dcc
synchronize startRinging() to not create multiple vibrate futures
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/services/NotificationService.java
M src/main/java/eu/siacs/conversations/services/NotificationService.java => src/main/java/eu/siacs/conversations/services/NotificationService.java +1 -1
@@ 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;