diff options
| author | 2024-02-01 20:58:11 +0000 | |
|---|---|---|
| committer | 2024-02-01 21:01:47 +0000 | |
| commit | 6e1c0db985d4392df840d343f886cdc672f02a04 (patch) | |
| tree | f412d5c9a303a48b2f19b2cc693d1b421033b91d /libs/androidfw/StringPool.cpp | |
| parent | 39fe469776c57e482e9df177159e852c8306fe59 (diff) | |
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions