summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorAndrii Kulian <akulian@google.com>2017-03-02 17:29:40 -0800
committerAndrii Kulian <akulian@google.com>2017-03-02 17:58:45 -0800
commitb43be0afff6c7ee4daaeb19058289e0ab66bf807 (patch)
tree3a1e681e6ac3acae88885643d9b29df876ab50ff /tools/aapt2/diff/Diff.cpp
parent5603a16e9e32bd202607957529147be0392c1a77 (diff)
Compute merged configuration changes
When we compute configuration changes to decide whether to relaunch an activity or just report a coniguration change, we were calculating task override changes and global changes separately. This results in incorrect set of detected changes if we're moving between the displays. E.g. when moving from secondary display to the primary a lot of override config values change from empty to non-empty. This CL switches to calculating configuration changes for merged task configuration (global + overrides). In this second version switched to not marking change to undefined value as an actual change when comparing configuration, so it will behave similarly to Configuration#updateFrom. If new configuration with undefined value is applied to an old one with corresponding value already set, it won't be overwritten to undefined. Bug: 34164473 Bug: 35911519 Test: android.server.cts.ActivityManagerDisplayTests Test: #testOnMovedToDisplayCallback Change-Id: Ie1b90ccd2181aa5fdab4f57b9856e7de6959a6cb
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions