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 Test: repro steps on the bug Test: atest ActivityThreadClientTest Change-Id: Ifa27d222bb0905053cf12e08c423bf7bfad904cd
Loading
Please register or sign in to comment