diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-09-19 15:10:04 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2014-09-22 10:51:20 -0700 |
commit | e572c011feabf6319ba836cf5bc4c3baa0ba6a85 (patch) | |
tree | 14a4e5461bbdcec4fb348663b8144efb28a796e4 /tools/aapt/Images.cpp | |
parent | 82a2dd8efe48d3a4e04655f01329da857ace4b7d (diff) | |
download | frameworks_base-e572c011feabf6319ba836cf5bc4c3baa0ba6a85.zip frameworks_base-e572c011feabf6319ba836cf5bc4c3baa0ba6a85.tar.gz frameworks_base-e572c011feabf6319ba836cf5bc4c3baa0ba6a85.tar.bz2 |
AAPT: Continuation of public/private attribute fix
XML files like layouts are now scanned and checked
for v21 attributes. If those kinds of attributes
are found, then we remove them in the original
version and synthesize a new xml file under the
v21 configuration.
Bug:17520380
Change-Id: Icf984cb96134180a2e35349c1dbf2cef9a8f0bda
Diffstat (limited to 'tools/aapt/Images.cpp')
-rw-r--r-- | tools/aapt/Images.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/aapt/Images.cpp b/tools/aapt/Images.cpp index 137c85c..56d1650 100644 --- a/tools/aapt/Images.cpp +++ b/tools/aapt/Images.cpp @@ -1483,7 +1483,7 @@ status_t preProcessImageToCache(const Bundle* bundle, const String8& source, con return NO_ERROR; } -status_t postProcessImage(const sp<AaptAssets>& assets, +status_t postProcessImage(const Bundle* bundle, const sp<AaptAssets>& assets, ResourceTable* table, const sp<AaptFile>& file) { String8 ext(file->getPath().getPathExtension()); @@ -1491,7 +1491,8 @@ status_t postProcessImage(const sp<AaptAssets>& assets, // At this point, now that we have all the resource data, all we need to // do is compile XML files. if (strcmp(ext.string(), ".xml") == 0) { - return compileXmlFile(assets, file, table); + String16 resourceName(parseResourceName(file->getPath().getPathLeaf())); + return compileXmlFile(bundle, assets, resourceName, file, table); } return NO_ERROR; |