summaryrefslogtreecommitdiff
path: root/packages/Shell/src
diff options
context:
space:
mode:
author Eric Lin <ericth@google.com> 2024-10-01 14:17:50 +0800
committer Eric Lin <ericth@google.com> 2024-10-11 12:24:29 +0800
commit8de89b99ee14ce0de74303a01ab8b4f3c9435a75 (patch)
tree9205dfe321958b91ba37a7d499cf84445d964925 /packages/Shell/src
parent832e8edacf5e53e7ef1da6aa0e189ed3e7ee450d (diff)
Ensure device state availability in registration.
This commit ensures the availability of DeviceStateInfo in DeviceStateManager by modifying the registerCallback method to return the current state upon completion of the two-way IPC call. This eliminates the reliance on thread priority for state delivery. This change supports timely window layout calculations in Activity#onCreate(), improving the overall robustness of applications that depend on accurate device state information during initialization. Bug: 337820752 Test: atest FrameworksCoreDeviceStateManagerTests Test: atest FrameworksServicesTests:DeviceStateManagerServiceTest Flag: com.android.window.flags.wlinfo_oncreate Change-Id: I9d00eed95c9f733e4eabd39506eb54c1286bfad6
Diffstat (limited to 'packages/Shell/src')
0 files changed, 0 insertions, 0 deletions