Pass through video state when answering a call.
Bug: 16013878
Bug: 16015750
Change-Id: I26af541c30cc296bb3b3f85c06a2e097d0b58547
diff --git a/src/com/android/telecomm/Call.java b/src/com/android/telecomm/Call.java
index 5dfba52..b06b043 100644
--- a/src/com/android/telecomm/Call.java
+++ b/src/com/android/telecomm/Call.java
@@ -669,8 +669,10 @@
/**
* Answers the call if it is ringing.
+ *
+ * @param videoState The video state in which to answer the call.
*/
- void answer() {
+ void answer(int videoState) {
Preconditions.checkNotNull(mConnectionService);
// Check to verify that the call is still in the ringing state. A call can change states
@@ -680,7 +682,7 @@
// that it will work. Instead, we wait until confirmation from the connectino service
// that the call is in a non-RINGING state before changing the UI. See
// {@link ConnectionServiceAdapter#setActive} and other set* methods.
- mConnectionService.answer(this);
+ mConnectionService.answer(this, videoState);
}
}