synchronize startRinging() to not create multiple vibrate futures
This commit is contained in:
parent
7476dccc0e
commit
89012b0f8b
|
@ -397,7 +397,7 @@ public class NotificationService {
|
||||||
notify(DELIVERY_FAILED_NOTIFICATION_ID, summaryNotification);
|
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);
|
showIncomingCallNotification(id, media);
|
||||||
final NotificationManager notificationManager = (NotificationManager) mXmppConnectionService.getSystemService(Context.NOTIFICATION_SERVICE);
|
final NotificationManager notificationManager = (NotificationManager) mXmppConnectionService.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||||
final int currentInterruptionFilter;
|
final int currentInterruptionFilter;
|
||||||
|
|
Loading…
Reference in a new issue