summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-07-08 15:54:50 -0700
committerAndrew Lee <anwlee@google.com>2014-07-08 16:04:46 -0700
commitd2a683f90c936264ada9a9ec08747021de7f9666 (patch)
treed83f11523d2f298c612be83eca88ac44ff97126f /src/com/android
parent2adba884432bc5f1b78079d74b4bf2cb2f1ff20f (diff)
downloadandroid_packages_apps_Dialer-d2a683f90c936264ada9a9ec08747021de7f9666.tar.gz
android_packages_apps_Dialer-d2a683f90c936264ada9a9ec08747021de7f9666.tar.bz2
android_packages_apps_Dialer-d2a683f90c936264ada9a9ec08747021de7f9666.zip
Hook up call intent for video call.
Bug: 16013180 Change-Id: If067b2bb4252afa2c2e373b4eff9511dad821159
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/dialer/DialtactsActivity.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index 414135178..f9a2f5b2b 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -1110,17 +1110,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;
}