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

Commit 25921e8d authored by Hall Liu's avatar Hall Liu
Browse files

Don't unmute when answering a handover connection

We usually unmute the mic when a new call is answered. However, since
handovers go through the same code path, they'd get unmuted too. We want
to preserve the mute behavior from pre-handover, so add a special case
check.

Bug: 63795849
Test: manual
Change-Id: I7c09252d9541ab41c4bb72e5311e64d3c12b53ba
parent f789bc01
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -232,8 +232,10 @@ public class CallAudioManager extends CallsManagerListenerBase {
            }
        }

        // Turn off mute when a new incoming call is answered.
        // Turn off mute when a new incoming call is answered iff it's not a handover.
        if (!call.isHandoverInProgress()) {
            mute(false /* shouldMute */);
        }

        maybeStopRingingAndCallWaitingForAnsweredOrRejectedCall(call);
    }