From 0067d2628d02369c62c922d7c9ac7f15fe986728 Mon Sep 17 00:00:00 2001 From: Christian Ascheberg Date: Sat, 2 Jan 2016 12:48:00 +0100 Subject: [PATCH] revert #4885 requestAudioFocus change Closes #5015 // FREEBIE --- src/org/thoughtcrime/redphone/RedPhoneService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/redphone/RedPhoneService.java b/src/org/thoughtcrime/redphone/RedPhoneService.java index 0757d02c74..0bc88e0ef9 100644 --- a/src/org/thoughtcrime/redphone/RedPhoneService.java +++ b/src/org/thoughtcrime/redphone/RedPhoneService.java @@ -293,8 +293,9 @@ public class RedPhoneService extends Service implements CallStateListener, CallS AudioManager audioManager = ServiceUtil.getAudioManager(this); AudioUtils.resetConfiguration(this); - Log.d(TAG, "request STREAM_VOICE_CALL audio focus"); - audioManager.requestAudioFocus(null, AudioManager.STREAM_VOICE_CALL, AudioManager.AUDIOFOCUS_GAIN); + Log.d(TAG, "request STREAM_VOICE_CALL transient audio focus"); + audioManager.requestAudioFocus(null, AudioManager.STREAM_VOICE_CALL, + AudioManager.AUDIOFOCUS_GAIN_TRANSIENT); } private void shutdownAudio() {