summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/commandline/impl/CallCommand.java
diff options
context:
space:
mode:
authorVarun Berry <vberry@google.com>2021-10-08 11:26:24 -0700
committerVarun Berry <vberry@google.com>2021-10-28 12:23:26 -0700
commit360d2eb8d9c9a81c01645c20d87ae7331f749fca (patch)
tree8d16f3350aceed846dea3ae2b2b25026b32a23a5 /java/com/android/dialer/commandline/impl/CallCommand.java
parent13758314f45071aa015784280973b51463853037 (diff)
Remove PhoneAccountHandle when building the intent to call Voicemail.
This will break functionality for calling voicemail in a multi-sim device. Bug: 197228468 Test: manual. Change-Id: If4463a24af2feb23d033190236e314b535d10fd6
Diffstat (limited to 'java/com/android/dialer/commandline/impl/CallCommand.java')
-rw-r--r--java/com/android/dialer/commandline/impl/CallCommand.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/java/com/android/dialer/commandline/impl/CallCommand.java b/java/com/android/dialer/commandline/impl/CallCommand.java
index b3ea8601f..d0008a321 100644
--- a/java/com/android/dialer/commandline/impl/CallCommand.java
+++ b/java/com/android/dialer/commandline/impl/CallCommand.java
@@ -19,8 +19,6 @@ package com.android.dialer.commandline.impl;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
-import android.telecom.PhoneAccount;
-import android.telecom.PhoneAccountHandle;
import android.telecom.TelecomManager;
import com.android.dialer.buildtype.BuildType;
import com.android.dialer.buildtype.BuildType.Type;
@@ -67,12 +65,10 @@ public class CallCommand implements Command {
}
String number = args.expectPositional(0, "number");
TelecomManager telecomManager = appContext.getSystemService(TelecomManager.class);
- PhoneAccountHandle phoneAccountHandle =
- telecomManager.getDefaultOutgoingPhoneAccount(PhoneAccount.SCHEME_TEL);
CallIntentBuilder callIntentBuilder;
if ("voicemail".equals(number)) {
callIntentBuilder =
- CallIntentBuilder.forVoicemail(phoneAccountHandle, CallInitiationType.Type.DIALPAD);
+ CallIntentBuilder.forVoicemail(CallInitiationType.Type.DIALPAD);
} else {
callIntentBuilder = new CallIntentBuilder(number, CallInitiationType.Type.DIALPAD);
}