Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc019c0c authored by Hung-ying Tyan's avatar Hung-ying Tyan Committed by Android (Google) Code Review
Browse files

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

parents 14b6d062 65a7f147
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
    }
+3 −1
Original line number Diff line number Diff line
@@ -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() {