diff options
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallPresenter.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallPresenter.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java index 5965a950a..4fece2206 100644 --- a/InCallUI/src/com/android/incallui/InCallPresenter.java +++ b/InCallUI/src/com/android/incallui/InCallPresenter.java @@ -21,6 +21,7 @@ import android.content.Intent; import android.telecomm.CallCapabilities; import android.telecomm.Phone; import android.telecomm.PhoneAccount; +import android.telecomm.VideoCallProfile; import com.google.common.base.Preconditions; import com.google.common.collect.Sets; @@ -418,7 +419,7 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener { /** * Answers any incoming call. */ - public void answerIncomingCall(Context context) { + public void answerIncomingCall(Context context, int videoState) { // By the time we receive this intent, we could be shut down and call list // could be null. Bail in those cases. if (mCallList == null) { @@ -428,8 +429,8 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener { Call call = mCallList.getIncomingCall(); if (call != null) { - TelecommAdapter.getInstance().answerCall(call.getId()); - showInCall(false, false /* newOutgoingCall */); + TelecommAdapter.getInstance().answerCall(call.getId(), videoState); + showInCall(false, false/* newOutgoingCall */); } } @@ -531,7 +532,8 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener { // (1) Attempt to answer a call if (incomingCall != null) { - TelecommAdapter.getInstance().answerCall(incomingCall.getId()); + TelecommAdapter.getInstance().answerCall( + incomingCall.getId(), VideoCallProfile.VIDEO_STATE_AUDIO_ONLY); return true; } |