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: Id2d466881e7451de5f56d485e79ef2065a027cd3
diff --git a/java/com/android/dialer/callcomposer/CallComposerActivity.java b/java/com/android/dialer/callcomposer/CallComposerActivity.java
index 0d47c70..ce3f7f2 100644
--- a/java/com/android/dialer/callcomposer/CallComposerActivity.java
+++ b/java/com/android/dialer/callcomposer/CallComposerActivity.java
@@ -481,7 +481,10 @@
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();
}