diff options
author | Srinivas Krovvidi <skrovvid@codeaurora.org> | 2010-11-24 18:05:00 +0530 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2011-04-29 11:36:13 -0700 |
commit | 36656f4d7d5c714c11d11454ef279fe5e6d46044 (patch) | |
tree | 7bc17cfb9850d5b124a9f7aa9d4c16c85249c9b5 | |
parent | 82592a9f9c161093c138024dfa7135db44f149b0 (diff) | |
download | Phone-36656f4d7d5c714c11d11454ef279fe5e6d46044.tar.gz |
phone app:Fix for wrong call status report in CDMA
When there 2 Mobile teriminated calls, that are not conference
( 1 held call and 1 accepted call ), in case of CDMA network
the call status return in AT+CLCC is multiparty. Added fix to
determine if it is a real multy party call.
Change-Id: Ib83abc1a71b57e2903c619b1509442b5b2f1f4f1
-rw-r--r-- | src/com/android/phone/BluetoothHandsfree.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/android/phone/BluetoothHandsfree.java b/src/com/android/phone/BluetoothHandsfree.java index 09eaa7ba..b4ac0c76 100644 --- a/src/com/android/phone/BluetoothHandsfree.java +++ b/src/com/android/phone/BluetoothHandsfree.java @@ -1458,7 +1458,16 @@ public class BluetoothHandsfree { int mpty = 0; if (currCdmaCallState == CdmaPhoneCallState.PhoneCallState.CONF_CALL) { - mpty = 1; + if (prevCdmaCallState == CdmaPhoneCallState.PhoneCallState.THRWAY_ACTIVE) { + // If the current state is reached after merging two calls + // we set the multiparty call true. + mpty = 1; + } else { + // CALL_CONF state is not from merging two calls, but from + // accepting the second call. In this case first will be on + // hold. + mpty = 0; + } } else { mpty = 0; } |