fix(android-sdk): Recover audio device if the OS changes it

pull/3982/head jitsi-meet_3591
Jose Angel Gonzalez 6 years ago committed by Saúl Ibarra Corretgé
parent 22277ad799
commit 039805eba3
  1. 4
      android/sdk/src/main/java/org/jitsi/meet/sdk/AudioModeModule.java

@ -457,6 +457,10 @@ class AudioModeModule extends ReactContextBaseJavaModule
// Reset user selection
userSelectedDevice = null;
// If the OS changes the Audio Route or Devices we could have lost
// the selected audio device
selectedDevice = null;
if (mode != -1) {
updateAudioRoute(mode);
}

Loading…
Cancel
Save