[fix] AudioManager.setMode(MODE_IN_COMMUNICATION) when entering the LinphoneCall.StreamsRunning
This commit is contained in:
parent
c1b143a713
commit
190d50f2f7
1 changed files with 1 additions and 0 deletions
|
@ -1279,6 +1279,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
|
|
||||||
if (state == State.StreamsRunning) {
|
if (state == State.StreamsRunning) {
|
||||||
startBluetooth();
|
startBluetooth();
|
||||||
|
setAudioManagerInCallMode();
|
||||||
if (mIncallWakeLock == null) {
|
if (mIncallWakeLock == null) {
|
||||||
mIncallWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "incall");
|
mIncallWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "incall");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue