summaryrefslogtreecommitdiff
path: root/tools/aapt2/Source.h
diff options
context:
space:
mode:
author Louis Chang <louischang@google.com> 2022-06-09 10:30:04 +0800
committer Louis Chang <louischang@google.com> 2022-07-04 05:22:55 +0000
commit3f4bbc3a41e63dbf457a2f41bafec96d9aa65834 (patch)
treed0ee0786007a940d146cde1443bec9936413748b /tools/aapt2/Source.h
parent9e76e35728fd004ef334977c7bdd8a1b2b94f2b9 (diff)
Reland “Update the activity current config only if it is reported”
The current configuration in the client activity could be updated via the other flow (from ViewRootImpl). So, it is possible that the client activity configuration is different from the last reported configuration that cached in the system. If the configuration changed again in that case, the ActivityConfigurationChangeItem could end up without reporting Activity#onConfigurationChanged if the differences between the new configuration and the current client activity configuration contains the configuration changes that the activity cannot handle. Update the activity current config only when reported, so the configuration differences can be correctly evaluated from the new configuration and the configuration last reported. Bug: 231312158 Bug: 236415038 Test: repro steps on the bug Test: atest ActivityThreadClientTest Test: atest OverlayHostTest Change-Id: I56a871fb30809f5f75f0007601a7629f9435e03a
Diffstat (limited to 'tools/aapt2/Source.h')
0 files changed, 0 insertions, 0 deletions