revert #4885 requestAudioFocus change

Closes #5015
// FREEBIE
This commit is contained in:
Christian Ascheberg 2016-01-02 12:48:00 +01:00 committed by Moxie Marlinspike
parent 524d06d033
commit 0067d2628d

View File

@ -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() {