From 6b45642f360ba30e5c70ab084b888738f6de0dcd Mon Sep 17 00:00:00 2001 From: Santos Cordon Date: Fri, 18 Jul 2014 13:40:29 -0700 Subject: [PATCH] Fixing ADD_CALL (1/3) Bug: 16241726 Change-Id: Ie1dd72a79c2430b10b0239dbdda5508edbc8eb26 --- telecomm/java/android/telecomm/ConnectionService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/telecomm/java/android/telecomm/ConnectionService.java b/telecomm/java/android/telecomm/ConnectionService.java index 5bf6124bcdbb7..76a826e247221 100644 --- a/telecomm/java/android/telecomm/ConnectionService.java +++ b/telecomm/java/android/telecomm/ConnectionService.java @@ -427,6 +427,12 @@ public abstract class ConnectionService extends Service { request.getCallId()); mAdapter.handleCreateConnectionSuccessful(request); addConnection(request.getCallId(), connection); + + // TODO: onSuccess should pass through the entire state of the connection instead of + // having to set it like this afterwards. Also, it would eliminate the hack of + // having to change the request object that we pass back. + mConnectionListener.onCallCapabilitiesChanged( + connection, connection.getCallCapabilities()); } @Override