commit | a41e66af586a2fe60d450f4a9f4b8e8f06c5f6c4 | [log] [tgz] |
---|---|---|
author | Ryan Mitchell <rtmitchell@google.com> | Tue May 15 15:08:58 2018 -0700 |
committer | Ryan Mitchell <rtmitchell@google.com> | Tue May 15 15:08:58 2018 -0700 |
tree | bc195700aa127b9c461d516d71e4db49c8c64d93 | |
parent | 7692904a7b20e489b4de1511b7bc64357eb21282 [diff] |
ResXMLTree: Clone DynamicRefTable on creation XmlBlocks are cached in ResourcesImpl::loadXmlResourceParser(...) and when asset manager invalidates itself, the references to the dynamic reference tables point to garbage. Now, the reference table is cloned when the XmlBlock is created so invalidation will not affect the XmlTree. Bug: 74240254 Test: Tested GoogleMaps on 9.75.7 and saw crashes stop Change-Id: I932db7a85fddc640c4d6ec327f534b5a1ad6d0b1