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

Commit fab395e9 authored by Sailesh Nepal's avatar Sailesh Nepal Committed by Android (Google) Code Review
Browse files

Merge "Set remote connection state after setting handle" into lmp-dev

parents 8c9e975c 70638f1f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)) {