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

Commit f286c392 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "HFP: Only reset AG indicator listeners when HF is first connected"

parents 31d80ec8 cb9958d5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1014,8 +1014,9 @@ public class HeadsetStateMachine extends StateMachine {
            if (mConnectingTimestampMs == Long.MIN_VALUE) {
                mConnectingTimestampMs = SystemClock.uptimeMillis();
            }
            updateAgIndicatorEnableState(DEFAULT_AG_INDICATOR_ENABLE_STATE);
            if (mPrevState == mConnecting) {
                // Reset AG indicator subscriptions, HF can set this later using AT+BIA command
                updateAgIndicatorEnableState(DEFAULT_AG_INDICATOR_ENABLE_STATE);
                // Reset NREC on connect event. Headset will override later
                processNoiseReductionEvent(true);
                // Query phone state for initial setup