Merge "AAPT: Fix an issue where a resource name was incorrectly derived on Windows" into lmp-dev

This commit is contained in:
Adam Lesinski
2014-10-17 22:50:48 +00:00
committed by Android (Google) Code Review

View File

@@ -1491,7 +1491,7 @@ status_t postProcessImage(const Bundle* bundle, 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) {
String16 resourceName(parseResourceName(file->getPath().getPathLeaf()));
String16 resourceName(parseResourceName(file->getSourceFile().getPathLeaf()));
return compileXmlFile(bundle, assets, resourceName, file, table);
}