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