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

Skip to content
Commit 15cd1a81 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

Don't use getCurrentState() in BatteryStateMachine

getCurrentState() could throw ArrayIndexOutOfBoundsException
when it's called during state transition.

To avoid exception we can use the last connection state instead.

Bug: 374013809
Flag: EXEMPT, no logic change
Test: atest BatterServiceTest BatteryStateMachineTest

Change-Id: I1cbbb4da6b16873b3f52d7d7c54c281413cde60d
parent b5c7187e
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