Ensure start of call properties are propagated to RemoteConnection.

Some properties were not being propagated to a RemoteConnection when
a Connection is first created.  This can cause problems where the
Connection Manager is not aware of these property changes, especially if
they never change again during the lifetime of a call.

The extras set when a Connection is first created using the
RemoteConnectionService API would not be propagated to the
RemoteConnection.  This means that Telephony RAT reporting would never
happen if the radio technology never changes during a call.

Bug: 72811636
Test: Manual
Change-Id: I658aab10b1fb89ca29c39338febcc76e9f50d8f4
This commit is contained in:
Tyler Gunn
2018-02-13 08:39:45 -08:00
parent d7187c90d0
commit 31f0e0bd25

View File

@@ -93,6 +93,10 @@ final class RemoteConnectionService {
// failure on the providing end, so immediately mark it destroyed
connection.setDestroyed();
}
connection.setStatusHints(parcel.getStatusHints());
connection.setIsVoipAudioMode(parcel.getIsVoipAudioMode());
connection.setRingbackRequested(parcel.isRingbackRequested());
connection.putExtras(parcel.getExtras());
}
}