Don't show add if there is an outgoing call.
We only support one outgoing call, so don't enable ADD when the call
is in an outgoing state (eg. dialing).
Bug: 18504905
Change-Id: Ie65beff2f1d7f4644d6b653902ce9fe4b3236e4f
diff --git a/src/com/android/server/telecom/CallsManager.java b/src/com/android/server/telecom/CallsManager.java
index 1697d38..2027339 100644
--- a/src/com/android/server/telecom/CallsManager.java
+++ b/src/com/android/server/telecom/CallsManager.java
@@ -895,6 +895,10 @@
* Returns true if telecom supports adding another top-level call.
*/
boolean canAddCall() {
+ if (getFirstCallWithState(OUTGOING_CALL_STATES) != null) {
+ return false;
+ }
+
int count = 0;
for (Call call : mCalls) {
if (call.isEmergencyCall()) {