summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/com/android/incallui/call/DialerCall.java22
1 files changed, 21 insertions, 1 deletions
diff --git a/java/com/android/incallui/call/DialerCall.java b/java/com/android/incallui/call/DialerCall.java
index fc2276232..94724e6b2 100644
--- a/java/com/android/incallui/call/DialerCall.java
+++ b/java/com/android/incallui/call/DialerCall.java
@@ -1731,7 +1731,27 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa
&& !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 */