summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-10-16 21:01:46 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-16 21:01:46 +0000
commitaef550d6b509fa31e5f19a8a700abc31c5d4689f (patch)
treedcf48a69e5e86728492a1558422f039872711651 /src
parenta869e3720924890cc40c44d67c217edf89d0138a (diff)
parent85a5b87ca9e2064abd8acc194004ffebd8827b17 (diff)
downloadandroid_packages_apps_ContactsCommon-aef550d6b509fa31e5f19a8a700abc31c5d4689f.tar.gz
android_packages_apps_ContactsCommon-aef550d6b509fa31e5f19a8a700abc31c5d4689f.tar.bz2
android_packages_apps_ContactsCommon-aef550d6b509fa31e5f19a8a700abc31c5d4689f.zip
am 85a5b87c: Add utilty method to get voicemail intent.
* commit '85a5b87ca9e2064abd8acc194004ffebd8827b17': Add utilty method to get voicemail intent.
Diffstat (limited to 'src')
-rw-r--r--src/com/android/contacts/common/CallUtil.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/CallUtil.java b/src/com/android/contacts/common/CallUtil.java
index ea0299c7..e7e09b7b 100644
--- a/src/com/android/contacts/common/CallUtil.java
+++ b/src/com/android/contacts/common/CallUtil.java
@@ -116,6 +116,13 @@ public class CallUtil {
}
/**
+ * A variant of {@link #getCallIntent(android.net.Uri)} for calling Voicemail.
+ */
+ public static Intent getVoicemailIntent() {
+ return getCallIntent(Uri.fromParts(PhoneAccount.SCHEME_VOICEMAIL, "", null));
+ }
+
+ /**
* A variant of {@link #getCallIntent(android.net.Uri)} but also accept a call
* origin and {@code Account} and {@code VideoCallProfile} state.
* For more information about call origin, see comments in Phone package (PhoneApp).