summaryrefslogtreecommitdiffstats
path: root/telephony/java
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2011-01-24 21:13:08 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-24 21:13:08 -0800
commitcc019c0caa0dd984404dea4d6623ae9d7b8474f1 (patch)
tree3655ccc441a5be91ea47cca2714e78b804c0a8f5 /telephony/java
parent14b6d0620b42d1bb3a55778ba452d838a0d89223 (diff)
parent65a7f147deb02f728959eb05913a2d6ce53dea1c (diff)
downloadframeworks_base-cc019c0caa0dd984404dea4d6623ae9d7b8474f1.zip
frameworks_base-cc019c0caa0dd984404dea4d6623ae9d7b8474f1.tar.gz
frameworks_base-cc019c0caa0dd984404dea4d6623ae9d7b8474f1.tar.bz2
Merge "Get mute state from active call." into gingerbread
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/com/android/internal/telephony/CallManager.java2
-rwxr-xr-xtelephony/java/com/android/internal/telephony/sip/SipPhone.java4
2 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 a8dd9c2..0335ca2 100644
--- a/telephony/java/com/android/internal/telephony/CallManager.java
+++ b/telephony/java/com/android/internal/telephony/CallManager.java
@@ -890,6 +890,8 @@ public final class CallManager {
public boolean getMute() {
if (hasActiveFgCall()) {
return getActiveFgCall().getPhone().getMute();
+ } else if (hasActiveBgCall()) {
+ return getFirstActiveBgCall().getPhone().getMute();
}
return false;
}
diff --git a/telephony/java/com/android/internal/telephony/sip/SipPhone.java b/telephony/java/com/android/internal/telephony/sip/SipPhone.java
index 72f3831..461e4fb 100755
--- a/telephony/java/com/android/internal/telephony/sip/SipPhone.java
+++ b/telephony/java/com/android/internal/telephony/sip/SipPhone.java
@@ -306,7 +306,9 @@ public class SipPhone extends SipPhoneBase {
}
public boolean getMute() {
- return foregroundCall.getMute();
+ return (foregroundCall.getState().isAlive()
+ ? foregroundCall.getMute()
+ : backgroundCall.getMute());
}
public Call getForegroundCall() {