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

Commit 82ccdc93 authored by Chienyuan's avatar Chienyuan Committed by android-build-merger
Browse files

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

am: d4d9103e

Change-Id: I426c3246b8484f71fde214c98b720a15f01b8f7b
parents a9d9f694 d4d9103e
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