Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-07-11 10:16:56 +02:00
parent 29bf51f765
commit b7f076b6b5

View File

@ -242,7 +242,7 @@ public class NotificationJob extends Job {
if (notificationManager != null) {
notificationManager.notify((int) crc32.getValue(), notificationBuilder.build());
if (soundUri != null) {
if (soundUri != null & !ApplicationWideCurrentRoomHolder.getInstance().isInCall()) {
MediaPlayer mediaPlayer = MediaPlayer.create(context, soundUri);
mediaPlayer.start();
mediaPlayer.setOnCompletionListener(MediaPlayer::release);