summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/CallUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/contacts/common/CallUtil.java')
-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 7c491664..3d5f7eab 100644
--- a/src/com/android/contacts/common/CallUtil.java
+++ b/src/com/android/contacts/common/CallUtil.java
@@ -141,6 +141,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).