am 2c41b036: am e6de96e5: am 27785ea6: DO NOT MERGE Disallow call unhold if the fg call is dialing.
* commit '2c41b03614ab4fa92bab8cf3bb4f627dd3de2505':
DO NOT MERGE Disallow call unhold if the fg call is dialing.
diff --git a/sip/src/com/android/services/telephony/sip/SipConnection.java b/sip/src/com/android/services/telephony/sip/SipConnection.java
index 173bc99..0d8a6f8 100644
--- a/sip/src/com/android/services/telephony/sip/SipConnection.java
+++ b/sip/src/com/android/services/telephony/sip/SipConnection.java
@@ -152,7 +152,8 @@
public void onUnhold() {
if (VERBOSE) log("onUnhold");
try {
- if (getPhone() != null && getState() == STATE_HOLDING) {
+ if (getPhone() != null && getState() == STATE_HOLDING &&
+ getPhone().getForegroundCall().getState() != Call.State.DIALING) {
// Double check with the internal state since a discrepancy in states could mean
// that the transaction is already in progress from a previous request.
if (mOriginalConnection != null &&