diff options
author | Andrew Lee <anwlee@google.com> | 2014-07-22 18:20:51 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-07-25 08:59:18 -0700 |
commit | 71c2d74d4cf00b5e2fe72f1d8c318da5894f133f (patch) | |
tree | a9dbfdc03f63f5d97d27431640010f1d35040113 /InCallUI/src/com/android/incallui/Call.java | |
parent | 6e1588189961c4aab0f036dd781ca0f218cbbe28 (diff) |
Use VideoCall instead of RemoteCallVideoProvider in InCallUi.
Bug: 16494880
Bug: 16495203
Change-Id: I61d981d835a5a4b452c20c736af1eabd64da198c
Diffstat (limited to 'InCallUI/src/com/android/incallui/Call.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/Call.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/InCallUI/src/com/android/incallui/Call.java b/InCallUI/src/com/android/incallui/Call.java index 3887eca5b..a11703a49 100644 --- a/InCallUI/src/com/android/incallui/Call.java +++ b/InCallUI/src/com/android/incallui/Call.java @@ -18,9 +18,9 @@ package com.android.incallui; import android.net.Uri; import android.telecomm.CallCapabilities; -import android.telecomm.PhoneAccountHandle; -import android.telecomm.RemoteCallVideoProvider; import android.telecomm.GatewayInfo; +import android.telecomm.InCallService.VideoCall; +import android.telecomm.PhoneAccountHandle; import android.telecomm.VideoCallProfile; import android.telephony.DisconnectCause; @@ -145,8 +145,8 @@ public final class Call { } @Override - public void onCallVideoProviderChanged(android.telecomm.Call call, - RemoteCallVideoProvider callVideoProvider) { + public void onVideoCallChanged(android.telecomm.Call call, + VideoCall videoCall) { update(); } @@ -163,7 +163,7 @@ public final class Call { private String mParentCallId; private final List<String> mChildCallIds = new ArrayList<>(); - private InCallVideoClient mCallVideoClient; + private InCallVideoCallListener mVideoCallListener; public Call(android.telecomm.Call telecommCall) { mTelecommCall = telecommCall; @@ -200,11 +200,11 @@ public final class Call { mTelecommCall.getParent()).getId(); } - if (mTelecommCall.getCallVideoProvider() != null) { - if (mCallVideoClient == null) { - mCallVideoClient = new InCallVideoClient(this); + if (mTelecommCall.getVideoCall() != null) { + if (mVideoCallListener == null) { + mVideoCallListener = new InCallVideoCallListener(this); } - mTelecommCall.getCallVideoProvider().setCallVideoClient(mCallVideoClient); + mTelecommCall.getVideoCall().setVideoCallListener(mVideoCallListener); } mChildCallIds.clear(); @@ -315,8 +315,8 @@ public final class Call { return mTelecommCall.getDetails().getAccountHandle(); } - public RemoteCallVideoProvider getCallVideoProvider() { - return mTelecommCall.getCallVideoProvider(); + public VideoCall getVideoCall() { + return mTelecommCall.getVideoCall(); } public List<String> getChildCallIds() { |