[Android] Fix UnsupportedOperationException in AudioModeModule
This commit is contained in:
parent
917fdcaa10
commit
3acf0c7f64
|
@ -37,7 +37,6 @@ import com.facebook.react.bridge.ReactMethod;
|
|||
import com.facebook.react.bridge.WritableArray;
|
||||
import com.facebook.react.bridge.WritableMap;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
|
@ -181,7 +180,7 @@ class AudioModeModule extends ReactContextBaseJavaModule {
|
|||
/**
|
||||
* List of currently available audio devices.
|
||||
*/
|
||||
private Set<String> availableDevices = Collections.emptySet();
|
||||
private Set<String> availableDevices = new HashSet<>();
|
||||
|
||||
/**
|
||||
* Currently selected device.
|
||||
|
|
Loading…
Reference in New Issue