summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-10-15 15:49:53 -0700
committerNancy Chen <nancychen@google.com>2014-10-15 15:49:53 -0700
commit85a5b87ca9e2064abd8acc194004ffebd8827b17 (patch)
tree9a5b0be2224bab213852a4a8baf896049d7e4b8e /src
parentcb5b0dd3d7f7669a0c547fed85dae7520f6127c5 (diff)
downloadandroid_packages_apps_ContactsCommon-85a5b87ca9e2064abd8acc194004ffebd8827b17.tar.gz
android_packages_apps_ContactsCommon-85a5b87ca9e2064abd8acc194004ffebd8827b17.tar.bz2
android_packages_apps_ContactsCommon-85a5b87ca9e2064abd8acc194004ffebd8827b17.zip
Add utilty method to get voicemail intent.
Voicemail intent is just a URI with a "voicemail:" scheme. Create this intent using the call utils. Bug: 17925501 Change-Id: I8e368d3b006190e910ae46d82e80c6603f5a42c4
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).