fix(android-sdk): Recover audio device if the OS changes it
This commit is contained in:
parent
22277ad799
commit
039805eba3
|
@ -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…
Reference in New Issue