am df1cc4ef: am cc019c0c: Merge "Get mute state from active call." into gingerbread

* commit 'df1cc4ef9205239701bbe73f903e89a9dfd2623a':
  Get mute state from active call.
This commit is contained in:
Hung-ying Tyan
2011-01-25 10:58:42 -08:00
committed by Android Git Automerger
2 changed files with 5 additions and 1 deletions

View File

@@ -895,6 +895,8 @@ public final class CallManager {
public boolean getMute() {
if (hasActiveFgCall()) {
return getActiveFgCall().getPhone().getMute();
} else if (hasActiveBgCall()) {
return getFirstActiveBgCall().getPhone().getMute();
}
return false;
}

View File

@@ -309,7 +309,9 @@ public class SipPhone extends SipPhoneBase {
}
public boolean getMute() {
return foregroundCall.getMute();
return (foregroundCall.getState().isAlive()
? foregroundCall.getMute()
: backgroundCall.getMute());
}
public Call getForegroundCall() {