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

Commit 8251213a authored by Mengjun Leng's avatar Mengjun Leng
Browse files

Fix sound output from headset when switching speaker to BT

If first close speaker, audio device can be first selected as
headset, and when BT SCO is connected, audio device will be
selected as BT headset. If set BT connected directly, then
audio path can route to BT by default.

Change-Id: I73411ee52f0045b48243b4fac86a81aec6d2e8d1
CRs-Fixed: 943847
parent 8ad27bdd
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -457,7 +457,6 @@ final class CallAudioManager extends CallsManagerListenerBase

        // Audio route.
        if (mCallAudioState.getRoute() == CallAudioState.ROUTE_BLUETOOTH) {
            turnOnSpeaker(false);
            turnOnBluetooth(true);
        } else if (mCallAudioState.getRoute() == CallAudioState.ROUTE_SPEAKER) {
            turnOnBluetooth(false);