am 55c58d01: am 5fb8a942: Merge "Pass disconnect reason for failed remote connections" into lmp-dev
* commit '55c58d019c744c52e7b8e4451007371b55eb1127': Pass disconnect reason for failed remote connections
This commit is contained in:
@@ -65,7 +65,11 @@ final class RemoteConnectionService {
|
||||
parcel.getCallerDisplayName(),
|
||||
parcel.getCallerDisplayNamePresentation());
|
||||
// Set state after handle so that the client can identify the connection.
|
||||
connection.setState(parcel.getState());
|
||||
if (parcel.getState() == Connection.STATE_DISCONNECTED) {
|
||||
connection.setDisconnected(parcel.getDisconnectCause());
|
||||
} else {
|
||||
connection.setState(parcel.getState());
|
||||
}
|
||||
List<RemoteConnection> conferenceable = new ArrayList<>();
|
||||
for (String confId : parcel.getConferenceableConnectionIds()) {
|
||||
if (mConnectionById.containsKey(confId)) {
|
||||
|
||||
Reference in New Issue
Block a user