[Android] Fix UnsupportedOperationException in AudioModeModule

This commit is contained in:
Lyubo Marinov 2017-11-19 21:54:07 -06:00
parent 917fdcaa10
commit 3acf0c7f64
1 changed files with 1 additions and 2 deletions

View File

@ -37,7 +37,6 @@ import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.WritableArray; import com.facebook.react.bridge.WritableArray;
import com.facebook.react.bridge.WritableMap; import com.facebook.react.bridge.WritableMap;
import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map; import java.util.Map;
@ -181,7 +180,7 @@ class AudioModeModule extends ReactContextBaseJavaModule {
/** /**
* List of currently available audio devices. * List of currently available audio devices.
*/ */
private Set<String> availableDevices = Collections.emptySet(); private Set<String> availableDevices = new HashSet<>();
/** /**
* Currently selected device. * Currently selected device.