summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-07-02 11:07:21 -0700
committerAndrew Lee <anwlee@google.com>2014-07-02 11:07:21 -0700
commit50d3dd7f5198d243cf5f1ab5764f741ddf301f18 (patch)
treef736a9d9abd4c2028f63040c6e723453e6a85d8c
parent6d854d12ee43940c59bff06558f391a24fa1eb23 (diff)
downloadpackages_apps_ContactsCommon-50d3dd7f5198d243cf5f1ab5764f741ddf301f18.tar.gz
packages_apps_ContactsCommon-50d3dd7f5198d243cf5f1ab5764f741ddf301f18.tar.bz2
packages_apps_ContactsCommon-50d3dd7f5198d243cf5f1ab5764f741ddf301f18.zip
Overload onCallNumberDirectly with isVideoCall option.
This is to provide a common interface for initiating a video call. Added comments too. Bug: 16013180 Change-Id: Iecbc54d8c7b09ba1554458c42528b1d2de141f91
-rw-r--r--src/com/android/contacts/common/list/OnPhoneNumberPickerActionListener.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/list/OnPhoneNumberPickerActionListener.java b/src/com/android/contacts/common/list/OnPhoneNumberPickerActionListener.java
index 9c6de6bb..f69df9dd 100644
--- a/src/com/android/contacts/common/list/OnPhoneNumberPickerActionListener.java
+++ b/src/com/android/contacts/common/list/OnPhoneNumberPickerActionListener.java
@@ -29,9 +29,17 @@ public interface OnPhoneNumberPickerActionListener {
*/
void onPickPhoneNumberAction(Uri dataUri);
+ /**
+ * Calls the specified phone number audio call.
+ */
void onCallNumberDirectly(String phoneNumber);
/**
+ * Calls the specified phone number, either as an audio or video call.
+ */
+ void onCallNumberDirectly(String phoneNumber, boolean isVideoCall);
+
+ /**
* Returns the selected number as a shortcut intent.
*/
void onShortcutIntentCreated(Intent intent);