diff options
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 |
commit | 70638f1f364ee6ddf50d159ff913a87230c27f70 (patch) | |
tree | 56e6254ad29276924b4efb5b74b0f8433fd57c41 /telecomm | |
parent | 4e8dd649b4c72122cdf15da9cfabc45aac789365 (diff) | |
download | frameworks_base-70638f1f364ee6ddf50d159ff913a87230c27f70.zip frameworks_base-70638f1f364ee6ddf50d159ff913a87230c27f70.tar.gz frameworks_base-70638f1f364ee6ddf50d159ff913a87230c27f70.tar.bz2 |
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
Diffstat (limited to 'telecomm')
-rw-r--r-- | telecomm/java/android/telecomm/RemoteConnectionService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/telecomm/java/android/telecomm/RemoteConnectionService.java b/telecomm/java/android/telecomm/RemoteConnectionService.java index 79193c2..d343be7 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)) { |