summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDarryl L Johnson <darryljohnson@google.com>2020-11-30 10:38:37 -0800
committerDarryl L Johnson <darryljohnson@google.com>2020-12-09 18:36:14 -0800
commit31c9c8d96bd76520defb09d2d09e39e791673228 (patch)
treeb9e0aeb03d7a073b1591450f22ac2f20ece34572 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbf0bed337e1eda092146fc4c00e343f473fadadb (diff)
Defer triggering notifyLidSwitchChanged() until the system is ready.
Before the system is ready getSwitchState() returns KEY_STATE_UNKNOWN for the lid switch causing the initial lidOpen value to be false on boot even if the lid is currently open. This defers the triggering of any callbacks registered before the system is ready to ensure that the initial callback value is correct. Bug: 159401801 Test: Manual - ensure first callback value matches lid state on boot. Change-Id: I9351312e5ecf8b1984ae11a47ed9b89dab1aa07f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions