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

* commit 'cc019c0caa0dd984404dea4d6623ae9d7b8474f1':
  Get mute state from active call.
This commit is contained in:
Hung-ying Tyan
2011-01-24 21:46:23 -08:00
committed by Android Git Automerger
2 changed files with 5 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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() {