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

Skip to content
Commit 6e1c0db9 authored by Beverly's avatar Beverly
Browse files

Check doze transition before attempting to getState()

getState throws and IllegalStateException if there
are pending transitions, so we need to gate
checks for DozeMachine.getState() to ensure
there are no transitions being executed.

If the device is in the middle of a doze transition,
then don't update the dock state.

Fixes: 320622153
Flag: NONE
Test: atest DozeDockHandlerTest
Test: manually send a lot of delayed notifications and then
dock device

Change-Id: I0aa2da1b7d507d77bb5978f0dd0340bca20b4d8d
parent 39fe4697
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment