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

Skip to content
Commit 09e7382f 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
Test: atest DisplayContentTest DisplayPolicyTest
Test: atest FrameworksCoreTests:ContextTest
Flag: com.android.window.flags.track_system_ui_context_before_wms

Change-Id: I8e1596a0f5f0fdd429d9fa66bb1da2625a1bdab2
parent e678d95e
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