[Android] Don't mute the microphone under any circumstance

It's a global action, and if we do that other applications won't be able to use
it. I experienced this with the system camera. We do, however, make sure to
enable it when we need to.

Note that enabling it doesn't mean we are *using* it. It just means we *can*,
and that we will get actual audio when we do.
This commit is contained in:
Saúl Ibarra Corretgé 2017-08-02 12:07:20 +02:00 committed by Lyubo Marinov
parent 99fd325a51
commit 1c1604bee7
1 changed files with 0 additions and 1 deletions

View File

@ -300,7 +300,6 @@ public class AudioModeModule extends ReactContextBaseJavaModule {
audioManager.setMode(AudioManager.MODE_NORMAL);
audioManager.abandonAudioFocus(null);
audioManager.setSpeakerphoneOn(false);
audioManager.setMicrophoneMute(true);
setBluetoothAudioRoute(false);
return true;