diff options
author | Andrew Lee <anwlee@google.com> | 2014-07-09 23:39:08 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-07-09 21:34:29 +0000 |
commit | 6fcf29e37dd18aef65f47d3bb87ea340946bfc39 (patch) | |
tree | 3ee40dec3a413ddb3df3a807a6dd1c380a8eb46e /src | |
parent | 70d301e1239c9324c071c10888bf6d7b0b48ddaa (diff) | |
parent | d2a683f90c936264ada9a9ec08747021de7f9666 (diff) |
Merge "Hook up call intent for video call."
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 60826a811..b40a5fc41 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -1112,17 +1112,11 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O @Override public void onCallNumberDirectly(String phoneNumber, boolean isVideoCall) { - if (isVideoCall) { - //TODO: Dispatch intent with video call extras specified, then remove this toast. - Toast toast = Toast.makeText(getApplicationContext(), - "Feature development in progress.", Toast.LENGTH_SHORT); - toast.show(); - return; - } - final PhoneAccount account = mAccountManager != null ? mAccountManager.getCurrentAccount() : null; - Intent intent = CallUtil.getCallIntent(phoneNumber, getCallOrigin(), account); + Intent intent = isVideoCall ? + CallUtil.getVideoCallIntent(phoneNumber, getCallOrigin(), account) : + CallUtil.getCallIntent(phoneNumber, getCallOrigin(), account); DialerUtils.startActivityWithErrorToast(this, intent); mClearSearchOnPause = true; } |