mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Prevent breaking audio of ongoing GSM call when releasing a SIP call.
This commit is contained in:
parent
5f3c0a2dc5
commit
cbe1cf0f1e
1 changed files with 6 additions and 2 deletions
|
|
@ -1025,7 +1025,10 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
}
|
||||
|
||||
if (state == CallEnd || state == Error) {
|
||||
mAudioManager.setMode(MODE_NORMAL);
|
||||
TelephonyManager tm = (TelephonyManager) LinphoneActivity.instance().getSystemService(Context.TELEPHONY_SERVICE);
|
||||
if (tm.getCallState() == TelephonyManager.CALL_STATE_IDLE) {
|
||||
mAudioManager.setMode(MODE_NORMAL);
|
||||
}
|
||||
}
|
||||
|
||||
if (state == State.Connected) {
|
||||
|
|
@ -1399,7 +1402,8 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
boolean sendCamera = mLc.getConferenceSize() == 0;
|
||||
enableCamera(call, sendCamera);
|
||||
}
|
||||
if (state == State.CallEnd && mLc.getCallsNb() == 0) {
|
||||
TelephonyManager tm = (TelephonyManager) LinphoneActivity.instance().getSystemService(Context.TELEPHONY_SERVICE);
|
||||
if (state == State.CallEnd && mLc.getCallsNb() == 0 && tm.getCallState() == TelephonyManager.CALL_STATE_IDLE) {
|
||||
routeAudioToReceiver();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue