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

Commit 845a677c authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Send event when handover source disconnects prior to acceptance of handover.

When the source call disconnects prior to the acceptance of a handover,
send a call event so that the destination connection source is aware
of the fact the source disconnected.  This ensures the destination is
able to either complete the handover (there are cases where a source can
disconnect prior to handover acceptance), or to abort the handover.

Test: Manual using test app
Bug: 62904673
Change-Id: I5b89113160e2697269ecbac7ef4f64844fd8a953
parent 8e3d34e4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2261,6 +2261,10 @@ public class CallsManager extends Call.ListenerBase
            if (handoverState == HandoverState.HANDOVER_FROM_STARTED) {
                // Disconnect before handover was accepted.
                Log.i(this, "setCallState: disconnect before handover accepted");
                // Let the handover destination know that the source has disconnected prior to
                // completion of the handover.
                call.getHandoverDestinationCall().sendCallEvent(
                        android.telecom.Call.EVENT_HANDOVER_SOURCE_DISCONNECTED, null);
            } else if (handoverState == HandoverState.HANDOVER_ACCEPTED) {
                Log.i(this, "setCallState: handover from complete");
                completeHandoverFrom(call);