diff options
author | Guo-Bin Zhang <Guo-binZhang@motorola.com> | 2009-08-18 16:56:49 -0500 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2009-08-20 17:40:40 -0700 |
commit | 5abc78405f03e739f972692aa100f25609301ff5 (patch) | |
tree | cacb0a07c709955f5a5e337d48c3bef1ff84970d /telephony | |
parent | 41ceb907b5d13ee58759022ac8d830b04686baba (diff) | |
download | frameworks_base-5abc78405f03e739f972692aa100f25609301ff5.zip frameworks_base-5abc78405f03e739f972692aa100f25609301ff5.tar.gz frameworks_base-5abc78405f03e739f972692aa100f25609301ff5.tar.bz2 |
Fix Calling screen shows "In Call" on pressing mute button
Send a flash command to CDMA network for putting the other party on hold.
For CDMA networks which do not support this the user would just hear a beep
from the network.
For CDMA networks which do support this, it will put the other party on hold.
Diffstat (limited to 'telephony')
-rw-r--r--[-rwxr-xr-x] | telephony/java/com/android/internal/telephony/cdma/CdmaCallTracker.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaCallTracker.java b/telephony/java/com/android/internal/telephony/cdma/CdmaCallTracker.java index 7bbf91d..3b2c90c 100755..100644 --- a/telephony/java/com/android/internal/telephony/cdma/CdmaCallTracker.java +++ b/telephony/java/com/android/internal/telephony/cdma/CdmaCallTracker.java @@ -294,8 +294,14 @@ public final class CdmaCallTracker extends CallTracker { // Should we bother with this check? if (ringingCall.getState() == CdmaCall.State.INCOMING) { throw new CallStateException("cannot be in the incoming state"); - } else { + } else if (foregroundCall.getConnections().size() > 1) { flashAndSetGenericTrue(); + } else { + // Send a flash command to CDMA network for putting the other party on hold. + // For CDMA networks which do not support this the user would just hear a beep + // from the network. For CDMA networks which do support it will put the other + // party on hold. + cm.sendCDMAFeatureCode("", obtainMessage(EVENT_SWITCH_RESULT)); } } |