summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/contactactions/IntentModule.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/android/dialer/contactactions/IntentModule.java')
-rw-r--r--java/com/android/dialer/contactactions/IntentModule.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/java/com/android/dialer/contactactions/IntentModule.java b/java/com/android/dialer/contactactions/IntentModule.java
index 5a4870cbe..57eb50a9b 100644
--- a/java/com/android/dialer/contactactions/IntentModule.java
+++ b/java/com/android/dialer/contactactions/IntentModule.java
@@ -24,6 +24,7 @@ import android.support.annotation.StringRes;
import android.telecom.PhoneAccountHandle;
import com.android.dialer.callintent.CallInitiationType.Type;
import com.android.dialer.callintent.CallIntentBuilder;
+import com.android.dialer.precall.PreCall;
/**
* {@link ContactActionModule} useful for making easy to build modules based on starting an intent.
@@ -66,9 +67,10 @@ public class IntentModule implements ContactActionModule {
// TODO(zachh): Support post-dial digits; consider using DialerPhoneNumber.
return new IntentModule(
context,
- new CallIntentBuilder(number, initiationType)
- .setPhoneAccountHandle(phoneAccountHandle)
- .build(),
+ PreCall.getIntent(
+ context,
+ new CallIntentBuilder(number, initiationType)
+ .setPhoneAccountHandle(phoneAccountHandle)),
R.string.call,
R.drawable.quantum_ic_call_white_24);
}
@@ -81,10 +83,11 @@ public class IntentModule implements ContactActionModule {
// TODO(zachh): Support post-dial digits; consider using DialerPhoneNumber.
return new IntentModule(
context,
- new CallIntentBuilder(number, initiationType)
- .setPhoneAccountHandle(phoneAccountHandle)
- .setIsVideoCall(true)
- .build(),
+ PreCall.getIntent(
+ context,
+ new CallIntentBuilder(number, initiationType)
+ .setPhoneAccountHandle(phoneAccountHandle)
+ .setIsVideoCall(true)),
R.string.video_call,
R.drawable.quantum_ic_videocam_white_24);
}