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

Skip to content
Commit e773f462 authored by Charles Chen's avatar Charles Chen
Browse files

Update resources when config update of sysUiContext

Before WindowContextInfoItem, the SystemUiContext was updated directly.
After that, the change will be post to the main thread first, which lead
to DisplayPolicy#onConfigurationChanged and other methods to get
obosolete values from SystemUiContext's resources. They still assume
SystemUiContext would be updated directly.

This CL track SystemUiContext config update with ComponentCallbacks, and
changes to update fields from SystemUiContext Resurces there.

Bug: 384428048
Bug: 397133940
Test: atest DisplayContentTest DisplayPolicyTest
Test: atest FrameworksCoreTests:ContextTest
Test: atp run v2/android-window-manager/apct/framework/window_manager_presubmit-cloud-tf
Flag: com.android.window.flags.track_system_ui_context_before_wms

Change-Id: I6eed6fe662244d6d761b80b147e6e228c1db2d51
parent 6b3d33e2
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