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

Commit 811167b6 authored by vnori's avatar vnori Committed by Vasu Nori
Browse files

Merge "fix initial "hfp-enable" state of HFP client state machine." am: 3e56faafed am: c21a6101e7

am: f6c97d9a5b

fix initial "hfp-enable" state of HFP client state machine.

initial state of "hfp-enable" is true.
when a call is placed, since the state is assumed to be
audio-routing already, no effort is made to actually route the audio to HU.

by fixing the initial state to "hfp-enable = false",
tihs problem is circumvented.

Bug: 79857325
Test: tested manually.

Change-Id: I6d7e5d03542571102c6ab3a1d73680bdde50c968
(cherry picked from commit 632cf273f75f0f534149904ffb1cacc92b403436)
parent 523593db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ public class HeadsetClientStateMachine extends StateMachine {
    private static final long QUERY_CURRENT_CALLS_WAIT_MILLIS = 2 * 1000; // 2 seconds

    // Keep track of audio routing across all devices.
    private static boolean sAudioIsRouted = true;
    private static boolean sAudioIsRouted = false;

    private final Disconnected mDisconnected;
    private final Connecting mConnecting;