Skip to content

Commit efe78fe

Browse files
committed
android: fix: selectAudioDevice() should support select AudioDevice.NONE
It means use want to cancel any preference and use the default one.
1 parent 68b2a2f commit efe78fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/zxcpoiu/incallmanager/InCallManagerModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ public void setDefaultAudioDevice(AudioDevice defaultDevice) {
16561656

16571657
/** Changes selection of the currently active audio device. */
16581658
public void selectAudioDevice(AudioDevice device) {
1659-
if (!audioDevices.contains(device)) {
1659+
if (device != AudioDevice.NONE && !audioDevices.contains(device)) {
16601660
Log.e(TAG, "selectAudioDevice() Can not select " + device + " from available " + audioDevices);
16611661
return;
16621662
}

0 commit comments

Comments
 (0)