We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74535b7 commit 027ffc1Copy full SHA for 027ffc1
android/src/main/java/com/zxcpoiu/incallmanager/InCallManagerModule.java
@@ -871,6 +871,12 @@ public void setSpeakerphoneOn(final boolean enable) {
871
Log.d(TAG, "setSpeakerphoneOn(): " + enable);
872
audioManager.setSpeakerphoneOn(enable);
873
}
874
+
875
+ if (enable){
876
+ audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
877
+ } else {
878
+ audioManager.setMode(AudioManager.MODE_NORMAL);
879
+ }
880
881
882
// --- TODO (zxcpoiu): These two api name is really confusing. should be changed.
0 commit comments