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

Commit 2a3455b9 authored by Hall Liu's avatar Hall Liu
Browse files

Unhold other call after local disconnect of active call

Bug: 26646508
Change-Id: Ic78c54f0aba935c4d42ce952bfb34d7333ca0c4c
parent 8e131577
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -268,6 +268,10 @@ public class CallAudioManager extends CallsManagerListenerBase {
        return mCallAudioRouteStateMachine.getCurrentCallAudioState();
    }

    public Call getPossiblyHeldForegroundCall() {
        return mForegroundCall;
    }

    public Call getForegroundCall() {
        if (mForegroundCall != null && mForegroundCall.getState() != CallState.ON_HOLD) {
            return mForegroundCall;
+1 −1
Original line number Diff line number Diff line
@@ -1219,7 +1219,7 @@ public class CallsManager extends Call.ListenerBase
        removeCall(call);
        if (mLocallyDisconnectingCalls.contains(call)) {
            mLocallyDisconnectingCalls.remove(call);
            Call foregroundCall = getForegroundCall();
            Call foregroundCall = mCallAudioManager.getPossiblyHeldForegroundCall();
            if (foregroundCall != null && foregroundCall.getState() == CallState.ON_HOLD) {
                foregroundCall.unhold();
            }