diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-11-11 21:48:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-11-11 21:48:22 +0000 |
commit | 3d198bb28ae6b086f967619b25407f65a7f3ebe9 (patch) | |
tree | a0fb688610549589fdff60123817caa59ba426a9 /java/com/android/dialer/callintent/CallIntentBuilder.java | |
parent | 7d34a79a4c1e128b29153102e260d9f791bd8041 (diff) | |
parent | 7f3f33c6f7ee64dda756c3a51a610c9565a7ee63 (diff) |
Merge changes I80ff3852,Ibe1c57bc,I93f35850
* changes:
Use layout_gravity to horizontally center each dialpad key in landscape mode.
Unify voicemail call placing
Stop storing device orientation in DialpadView's instance variable to improve reliability.
Diffstat (limited to 'java/com/android/dialer/callintent/CallIntentBuilder.java')
-rw-r--r-- | java/com/android/dialer/callintent/CallIntentBuilder.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/com/android/dialer/callintent/CallIntentBuilder.java b/java/com/android/dialer/callintent/CallIntentBuilder.java index 2bbd124fb..25a5803dc 100644 --- a/java/com/android/dialer/callintent/CallIntentBuilder.java +++ b/java/com/android/dialer/callintent/CallIntentBuilder.java @@ -96,6 +96,13 @@ public class CallIntentBuilder { this(CallUtil.getCallUri(Assert.isNotNull(number)), callInitiationType); } + public static CallIntentBuilder forVoicemail( + @Nullable PhoneAccountHandle phoneAccountHandle, CallInitiationType.Type callInitiationType) { + return new CallIntentBuilder( + Uri.fromParts(PhoneAccount.SCHEME_VOICEMAIL, "", null), callInitiationType) + .setPhoneAccountHandle(phoneAccountHandle); + } + public CallSpecificAppData getCallSpecificAppData() { return callSpecificAppData; } |