summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sailesh Nepal <sail@google.com> 2014-09-09 21:49:14 -0700
committer Sailesh Nepal <sail@google.com> 2014-09-09 21:49:14 -0700
commit70638f1f364ee6ddf50d159ff913a87230c27f70 (patch)
tree56e6254ad29276924b4efb5b74b0f8433fd57c41
parent4e8dd649b4c72122cdf15da9cfabc45aac789365 (diff)
Set remote connection state after setting handle
This CL sets the remote connection state after setting the handle. This makes it easier to identify the connection for things like ring deduping. Bug: 17448801 Change-Id: Id08ab0bc6a257384842250ced19cd297a58c0b87
-rw-r--r--telecomm/java/android/telecomm/RemoteConnectionService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/telecomm/java/android/telecomm/RemoteConnectionService.java b/telecomm/java/android/telecomm/RemoteConnectionService.java
index 79193c246210..d343be718a8d 100644
--- a/telecomm/java/android/telecomm/RemoteConnectionService.java
+++ b/telecomm/java/android/telecomm/RemoteConnectionService.java
@@ -60,13 +60,14 @@ final class RemoteConnectionService {
if (connection != NULL_CONNECTION && mPendingConnections.contains(connection)) {
mPendingConnections.remove(connection);
// Unconditionally initialize the connection ...
- connection.setState(parcel.getState());
connection.setCallCapabilities(parcel.getCapabilities());
connection.setHandle(
parcel.getHandle(), parcel.getHandlePresentation());
connection.setCallerDisplayName(
parcel.getCallerDisplayName(),
parcel.getCallerDisplayNamePresentation());
+ // Set state after handle so that the client can identify the connection.
+ connection.setState(parcel.getState());
List<RemoteConnection> conferenceable = new ArrayList<>();
for (String confId : parcel.getConferenceableConnectionIds()) {
if (mConnectionById.containsKey(confId)) {