Merge "Get mute state from active call." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
cc019c0caa
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user