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
Loading
Please register or sign in to comment