Add voip call checks.
Bug: 110177989
Test: manual
PiperOrigin-RevId: 202337281
Change-Id: I277fcbc77ad50c4ed04f92d0541b67043bc8bef8
diff --git a/java/com/android/incallui/call/DialerCall.java b/java/com/android/incallui/call/DialerCall.java
index fc22762..94724e6 100644
--- a/java/com/android/incallui/call/DialerCall.java
+++ b/java/com/android/incallui/call/DialerCall.java
@@ -1731,7 +1731,27 @@
&& !isConferenceCall()
&& !isVideoCall()
&& !isVoiceMailNumber()
- && !hasReceivedVideoUpgradeRequest();
+ && !hasReceivedVideoUpgradeRequest()
+ && !isVoipCallNotSupportedBySpeakeasy();
+ }
+
+ private boolean isVoipCallNotSupportedBySpeakeasy() {
+ Bundle extras = getIntentExtras();
+
+ if (extras == null) {
+ return false;
+ }
+
+ // Indicates an VOIP call.
+ String callid = extras.getString("callid");
+
+ if (TextUtils.isEmpty(callid)) {
+ LogUtil.i("DialerCall.isVoipCallNotSupportedBySpeakeasy", "callid was empty");
+ return false;
+ }
+
+ LogUtil.i("DialerCall.isVoipCallNotSupportedBySpeakeasy", "call is not eligible");
+ return true;
}
/** Indicates the user has selected SpeakEasy */