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

Commit 89e8dfa3 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:...

Merge "HFP: Only reset AG indicator listeners when HF is first connected" am: 03f96225 am: 1add9b9e
am: 595ae33e

Change-Id: Ice894ee1d4b3c4e439dd2383dfe3fddc035d4880
parents 106e36bd 595ae33e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1015,8 +1015,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