diff options
author | Ryan Mitchell <rtmitchell@google.com> | 2020-02-10 13:35:24 -0800 |
---|---|---|
committer | Ryan Mitchell <rtmitchell@google.com> | 2020-02-10 14:12:00 -0800 |
commit | 155d539634571bcd97f07884f28c61ef18b863c2 (patch) | |
tree | de788b2215f2201cf59e2363cef31df120b76e10 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | dc7efcc2ce8a57ae0a5d57825e08e8d6ad23583f (diff) |
Sort bag by attribute key when using libs
When shared libraries are assigned package ids in a different order
than compile order, bag resources that use attributes from both
multiple libraries will not be sorted in ascending attribute id order.
This change detects when the attribute ids are not in order and sorts
the bag entries accordingly.
The change is designed to be less invasive. Deduping the GetBag logic
should probably be spun off in a separate bug.
Bug: 147674078
Test: libandroidfw_tests
Change-Id: Id8ce8e9c7ef294fcc312b77468136067d392dbd0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions