summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2025-02-07 15:11:47 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2025-02-07 15:12:00 +0000
commitd245cab3ffa136a4835fa0743020119952a45bde (patch)
treeee950b4dcc301367344d568cca9a2522218bd945 /libs/androidfw/misc.cpp
parent65d2cf71f60100a18eb06ea070157b1719b44a8d (diff)
Ensure up-to-date WindowContext resources before configuration change
Updates resources associated with a WindowContext before dispatching the new configuration to the root view. Previously, resources weren't updated until after the configuration change was propagated to the root view, leading to outdated configurations being received in onConfigurationChanged. This was mainly happening on foldable devices: after folding/unfolding the configuration was always the one for the wrong screen. Bug: 362719719 Bug: 394527409 Test: Checked the config received by the root view is the expected one from a window added from a window context after folding/unfolding Flag: com.android.window.flags.enable_window_context_resources_update_on_config_change Change-Id: I238a7fcc892dccfda2703b764c94cfaeb0bd1402
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions