]> git.saurik.com Git - android/aapt.git/commit
Fix replacement-after-add of resource files in overlay.
authorRobert Greenwalt <robdroid@android.com>
Mon, 31 Aug 2009 21:48:20 +0000 (14:48 -0700)
committerRobert Greenwalt <robdroid@android.com>
Mon, 31 Aug 2009 21:56:28 +0000 (14:56 -0700)
commit21c5c61adf6057d794d60b3623af4506bcc182e6
treecee5dd63448b32ef3e71c4edda5a04093eaa2bf6
parent9cc9feadcc715388d2d950e6ae8c5cc4e56e0f21
Fix replacement-after-add of resource files in overlay.

Aapt was adding/removing elements from a list an continuing to use a stale copy for future indexes.
This could cause incorrect subsequent processing.  Add an en resource and modify an es, for example.
Adding the en would cause the base fileset's es version to be moved in the list.  Using the old index
we'd then attempt to remove the old es version with the wrong index and then add the new es version
generating a "duplicate file" error.

bug: 2090015
Resource.cpp