summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorJohn Wang <johnwang@google.com>2010-11-10 19:32:42 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-11-10 19:32:42 -0800
commita6689ddbba5d7d5e9ad7a07ae84a187497f18121 (patch)
treee1b3538476059f81d707f11697a1fcb0adf9591d /telephony
parent6ae689201f23643bcffc8ca95872a905ff2f8d32 (diff)
parent1ed7d65b5d781d10de91a199fbd94d6d445d1def (diff)
downloadframeworks_base-a6689ddbba5d7d5e9ad7a07ae84a187497f18121.zip
frameworks_base-a6689ddbba5d7d5e9ad7a07ae84a187497f18121.tar.gz
frameworks_base-a6689ddbba5d7d5e9ad7a07ae84a187497f18121.tar.bz2
am 1ed7d65b: am fac4a689: Merge "Fix the audio mode glitch during hangup." into gingerbread
* commit '1ed7d65b5d781d10de91a199fbd94d6d445d1def': Fix the audio mode glitch during hangup.
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/CallManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/CallManager.java b/telephony/java/com/android/internal/telephony/CallManager.java
index 5f9a3e7..d74a547 100644
--- a/telephony/java/com/android/internal/telephony/CallManager.java
+++ b/telephony/java/com/android/internal/telephony/CallManager.java
@@ -380,7 +380,11 @@ public final class CallManager {
break;
case OFFHOOK:
Phone fgPhone = getFgPhone();
- if (hasActiveFgCall() && !(fgPhone instanceof SipPhone)) {
+ // Enable IN_CALL mode while foreground call is in DIALING,
+ // ALERTING, ACTIVE and DISCONNECTING state and not from sipPhone
+ if (getActiveFgCallState() != Call.State.IDLE
+ && getActiveFgCallState() != Call.State.DISCONNECTED
+ && !(fgPhone instanceof SipPhone)) {
mode = AudioManager.MODE_IN_CALL;
}
break;