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

Commit 6cf83850 authored by Chienyuan's avatar Chienyuan Committed by Jack He
Browse files

Remove mConnectingTimestampMs logic in Connected state

It is not possible to go directly from mDisconnected to mConnected.
Thus, mmConnectingTimestampMs is not possible equal to Long.MIN_VALUE
when enter Connected state.

Bug: 112684639
Test: manual
Change-Id: I8779be5858ae3df14cc6c27450d06ad818e4d22f
parent 8e2a967b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1011,9 +1011,6 @@ public class HeadsetStateMachine extends StateMachine {
        @Override
        public void enter() {
            super.enter();
            if (mConnectingTimestampMs == Long.MIN_VALUE) {
                mConnectingTimestampMs = SystemClock.uptimeMillis();
            }
            if (mPrevState == mConnecting) {
                // Reset AG indicator subscriptions, HF can set this later using AT+BIA command
                updateAgIndicatorEnableState(DEFAULT_AG_INDICATOR_ENABLE_STATE);