summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2011-05-17 19:22:49 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-05-17 19:22:49 -0700
commitf0a22bff8f464437f5892d9802ceef1725e2104b (patch)
treef39ac8bd7ddd5ac1c77580e00fcfce76c570e1a8
parenta15402434200c0462ceb9f6bb9fd79ab02910dc0 (diff)
parent36656f4d7d5c714c11d11454ef279fe5e6d46044 (diff)
downloadPhone-f0a22bff8f464437f5892d9802ceef1725e2104b.tar.gz
Merge "phone app:Fix for wrong call status report in CDMA" into gingerbread
-rw-r--r--src/com/android/phone/BluetoothHandsfree.java11
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;
}