Merge "Get mute state from active call." into gingerbread

This commit is contained in:
Hung-ying Tyan
2011-01-24 21:13:08 -08:00
committed by Android (Google) Code Review
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() {