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

Skip to content
Commit 3a1ba687 authored by jonerlin's avatar jonerlin
Browse files

HearingAid: Check the value of mConnectionState in isConnected

* In current HearingAid state machine design, there could be potential
critical timing to cause java.lang.ArrayIndexOutOfBoundsException:
index=-1, when HearingAid state machine exit one state to enter another
state. at this timing, the mStateStackTopIndex value of mStateStack be set to -1.
* Checking mConnectionState value which maintained in
HearingAidStateMachine to avoid this AndroidRuntime exception.

Bug: 154663576
Test: Enable Bluetooth -> Connect Bluetooth headset -> Disconnect
Bluetooth headset -> Disable Bluetooth then check HearingAid state
machine log.

Change-Id: I21826a3e80d93b0cab7210d40975fa461485dcda
parent 26c185f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment