Merge "Fix the call is soundless due another call is active"

This commit is contained in:
Treehugger Robot 2020-01-27 22:32:29 +00:00 committed by Gerrit Code Review
commit 73ae8d8599
1 changed files with 5 additions and 0 deletions

View File

@ -2501,6 +2501,11 @@ public class CallsManager extends Call.ListenerBase
if (!mCalls.contains(call)) {
Log.w(this, "Unknown call (%s) asked to be removed from hold", call);
} else {
if (getOutgoingCall() != null) {
Log.w(this, "There is an outgoing call, so it is unable to unhold this call %s",
call);
return;
}
Call activeCall = (Call) mConnectionSvrFocusMgr.getCurrentFocusCall();
String activeCallId = null;
if (activeCall != null && !activeCall.isLocallyDisconnecting()) {