summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/interactions/PhoneNumberInteraction.java
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-09-14 16:52:08 -0700
committerYorke Lee <yorkelee@google.com>2015-09-14 17:18:43 -0700
commite3a2d133a9fdf12462dab75ed7d6c6c6061fa5e3 (patch)
tree1335891455975c42f29fedde672253ba17cb83a6 /src/com/android/dialer/interactions/PhoneNumberInteraction.java
parent84f6633fc2ffef805a36b7516f27ee9236fcbd1f (diff)
Refactor IntentUtil.getCallIntent variants to use builder
Use the builder pattern to create a Call intent to replace the numerous variants of getCallIntent. This will facilitate the addition of future extras to the created call intent. Bug: 23164804 Change-Id: Ibab8473274de8e423f621ae6fbb9685eeb2a7cab
Diffstat (limited to 'src/com/android/dialer/interactions/PhoneNumberInteraction.java')
-rw-r--r--src/com/android/dialer/interactions/PhoneNumberInteraction.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/interactions/PhoneNumberInteraction.java b/src/com/android/dialer/interactions/PhoneNumberInteraction.java
index 6e218c025..68eb80874 100644
--- a/src/com/android/dialer/interactions/PhoneNumberInteraction.java
+++ b/src/com/android/dialer/interactions/PhoneNumberInteraction.java
@@ -53,6 +53,7 @@ import com.android.dialer.R;
import com.android.dialer.TransactionSafeActivity;
import com.android.dialer.contact.ContactUpdateService;
import com.android.dialer.util.IntentUtil;
+import com.android.dialer.util.IntentUtil.CallIntentBuilder;
import com.android.dialer.util.DialerUtils;
import com.google.common.annotations.VisibleForTesting;
@@ -322,7 +323,7 @@ public class PhoneNumberInteraction implements OnLoadCompleteListener<Cursor> {
Intent.ACTION_SENDTO, Uri.fromParts("sms", phoneNumber, null));
break;
default:
- intent = IntentUtil.getCallIntent(phoneNumber, callOrigin);
+ intent = new CallIntentBuilder(phoneNumber).build();
break;
}
DialerUtils.startActivityWithErrorToast(context, intent);