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

Commit dae580c3 authored by Vasu Nori's avatar Vasu Nori
Browse files

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

this is tested on pi-dev in go/ag/4165726

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: I11aa0dadc74db972614a6679c6dcd00fb4b7a291
parent dd070ba8
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;