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

Skip to content
Commit 8de89b99 authored by Eric Lin's avatar Eric Lin
Browse files

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
parent 832e8eda
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