Skip to content

Commit

Permalink
Fix issue: Speaker do not work with android
Browse files Browse the repository at this point in the history
  • Loading branch information
tatthangcntt committed Apr 7, 2023
1 parent d3ba8ab commit c86adbc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ public void run() {
public void setSpeakerphoneOn(final boolean enable) {
if (enable != audioManager.isSpeakerphoneOn()) {
Log.d(TAG, "setSpeakerphoneOn(): " + enable);
audioManager.setMode(defaultAudioMode);
audioManager.setSpeakerphoneOn(enable);
}
}
Expand Down

0 comments on commit c86adbc

Please sign in to comment.