diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-10-20 20:59:49 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-20 20:59:49 +0000 |
commit | 3986e52cf994ea7960dabffb8d6015e400ce3b63 (patch) | |
tree | 319210a0631fdfdd766eed429e5eb811529b89d7 /tools/aapt/ResourceTable.cpp | |
parent | b12ff841592d6c8cf4846b710d07858e63addbeb (diff) | |
parent | 3f8c7dec6b3fd4ac7fc99fe4e41cd0fa1b97bcad (diff) | |
download | frameworks_base-3986e52cf994ea7960dabffb8d6015e400ce3b63.zip frameworks_base-3986e52cf994ea7960dabffb8d6015e400ce3b63.tar.gz frameworks_base-3986e52cf994ea7960dabffb8d6015e400ce3b63.tar.bz2 |
am 3f8c7dec: Merge "AAPT: Fix path for final generated resources on Windows" into lmp-dev
* commit '3f8c7dec6b3fd4ac7fc99fe4e41cd0fa1b97bcad':
AAPT: Fix path for final generated resources on Windows
Diffstat (limited to 'tools/aapt/ResourceTable.cpp')
-rw-r--r-- | tools/aapt/ResourceTable.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/aapt/ResourceTable.cpp b/tools/aapt/ResourceTable.cpp index a0f3190..4cca57f 100644 --- a/tools/aapt/ResourceTable.cpp +++ b/tools/aapt/ResourceTable.cpp @@ -4459,6 +4459,9 @@ status_t ResourceTable::modifyForCompat(const Bundle* bundle, // Look to see if we already have an overriding v21 configuration. sp<ConfigList> cl = getConfigList(String16(mAssets->getPackage()), String16(target->getResourceType()), resourceName); + //if (cl == NULL) { + // fprintf(stderr, "fuuuuck\n"); + //} if (cl->getEntries().indexOfKey(newConfig) < 0) { // We don't have an overriding entry for v21, so we must duplicate this one. sp<XMLNode> newRoot = root->clone(); @@ -4466,7 +4469,7 @@ status_t ResourceTable::modifyForCompat(const Bundle* bundle, AaptGroupEntry(newConfig), target->getResourceType()); String8 resPath = String8::format("res/%s/%s", newFile->getGroupEntry().toDirName(target->getResourceType()).string(), - target->getPath().getPathLeaf().string()); + target->getSourceFile().getPathLeaf().string()); resPath.convertToResPath(); // Add a resource table entry. |