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

Commit 6f1347fb authored by Shriram Ganesh's avatar Shriram Ganesh
Browse files

Add support for SRVCC conference call

Add support for updating the parent of handover connections to
point to handover call.
Update status of the handover call object based on the status of
foreground, background or ringing call.

CRs-Fixed: 745013
Change-Id: Iacd7daa929d0da9a0e020491669165aa42bed144
parent 348babc3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1342,6 +1342,15 @@ public final class ImsPhoneCallTracker extends CallTracker {
        } else { // Multi-call SRVCC
            mHandoverCall.mConnections.addAll(call.mConnections);
        }
        if (mHandoverCall.mConnections != null) {
            for (Connection c : mHandoverCall.mConnections) {
                ((ImsPhoneConnection)c).changeParent(mHandoverCall);
            }
        }
        if (call.getState().isAlive()) {
            log ("Call is alive and state is " + call.mState);
            mHandoverCall.mState = call.mState;
        }
        call.mConnections.clear();
        call.mState = ImsPhoneCall.State.IDLE;
    }