Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90dd50ac authored by Mengjun Leng's avatar Mengjun Leng
Browse files

Fix the call is soundless due another call is active

BT may unhold the held call while a dialing call is ongoing,
so that both calls can be active shortly leading to fail
the sound output.

To fix it, block the processing of unholding while an outgoing
call is present.

Test: manual
Bug: 147027350

Change-Id: If31744f0eceb5bf6957133251abcf191c4d12a4d
parent de3eb0de
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2385,6 +2385,11 @@ public class CallsManager extends Call.ListenerBase
        if (!mCalls.contains(call)) {
            Log.w(this, "Unknown call (%s) asked to be removed from hold", call);
        } else {
            if (getOutgoingCall() != null) {
                Log.w(this, "There is an outgoing call, so it is unable to unhold this call %s",
                        call);
                return;
            }
            Call activeCall = (Call) mConnectionSvrFocusMgr.getCurrentFocusCall();
            String activeCallId = null;
            if (activeCall != null && !activeCall.isLocallyDisconnecting()) {