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 027ffc1 commit a0e7e45Copy full SHA for a0e7e45
android/src/main/java/com/zxcpoiu/incallmanager/InCallManagerModule.java
@@ -869,14 +869,9 @@ public void run() {
869
public void setSpeakerphoneOn(final boolean enable) {
870
if (enable != audioManager.isSpeakerphoneOn()) {
871
Log.d(TAG, "setSpeakerphoneOn(): " + enable);
872
+ audioManager.setMode(defaultAudioMode);
873
audioManager.setSpeakerphoneOn(enable);
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