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

Commit c723d7d1 authored by Tyler Gunn's avatar Tyler Gunn Committed by Android (Google) Code Review
Browse files

Merge "Do not send call event if handover call has no ConnectionService bound."

parents 84772102 e1cab751
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2205,7 +2205,12 @@ public class CallsManager extends Call.ListenerBase
                    handoverFrom.onConnectionEvent(Connection.EVENT_HANDOVER_FAILED, null);
                    // Inform the "to" ConnectionService that handover to it has failed.  This
                    // allows the ConnectionService the call was being handed over
                    if (call.getConnectionService() != null) {
                        // Only attempt if the call has a bound ConnectionService if handover failed
                        // early on in the handover process, the CS will be unbound and we won't be
                        // able to send the call event.
                        call.sendCallEvent(android.telecom.Call.EVENT_HANDOVER_FAILED, null);
                    }
                    call.markHandoverFinished();
                }
            // If this call was disconnected because it was handed over TO another call, report the