Don't Ignore new extras in ConnectionRequest
The current code ignores the new extras that are added in
createConnection#onSuccess. This change modifies the
ConnectionRequest to include those extras.
This was causing a test failure on internal Telecom
unit tests.
Test: Telecom Unit Tests
Change-Id: I2fc739d374a4355176a50dd6a7ab081e2673c0f9
diff --git a/src/com/android/server/telecom/ConnectionServiceWrapper.java b/src/com/android/server/telecom/ConnectionServiceWrapper.java
index be54f4f..df1bb4a 100644
--- a/src/com/android/server/telecom/ConnectionServiceWrapper.java
+++ b/src/com/android/server/telecom/ConnectionServiceWrapper.java
@@ -872,7 +872,7 @@
ConnectionRequest connectionRequest = new ConnectionRequest.Builder()
.setAccountHandle(call.getTargetPhoneAccount())
.setAddress(call.getHandle())
- .setExtras(call.getIntentExtras())
+ .setExtras(extras)
.setVideoState(call.getVideoState())
.setTelecomCallId(callId)
.setShouldShowIncomingCallUi(shouldShowIncomingCallUI)