summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorerfanian <erfanian@google.com>2018-01-02 10:39:53 -0800
committerCopybara-Service <copybara-piper@google.com>2018-01-02 12:24:10 -0800
commit15b1de56be230e3b2e9e2dbbf4fe03e4f2a8c26e (patch)
treeac6276490ef00e78066b80cf9f35086d06b4afd0 /java
parent968921de99f42025b00b9b5c8b549c7c0043cf3a (diff)
Add assisted dialing to the call composer activity.
Bug: 70802770 Test: didn't see a great place to test this. PiperOrigin-RevId: 180563660 Change-Id: I1ecb83fd48a499d8636dcace930498c1508c07ae
Diffstat (limited to 'java')
-rw-r--r--java/com/android/dialer/callcomposer/CallComposerActivity.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/com/android/dialer/callcomposer/CallComposerActivity.java b/java/com/android/dialer/callcomposer/CallComposerActivity.java
index 0d47c7007..ce3f7f270 100644
--- a/java/com/android/dialer/callcomposer/CallComposerActivity.java
+++ b/java/com/android/dialer/callcomposer/CallComposerActivity.java
@@ -481,7 +481,10 @@ public class CallComposerActivity extends AppCompatActivity
private void placeTelecomCall() {
PreCall.start(
- this, new CallIntentBuilder(contact.getNumber(), CallInitiationType.Type.CALL_COMPOSER));
+ this,
+ new CallIntentBuilder(contact.getNumber(), CallInitiationType.Type.CALL_COMPOSER)
+ // Call composer is only active if the number is associated with a known contact.
+ .setAllowAssistedDial(true));
setResult(RESULT_OK);
finish();
}