From 858cd9885bcb5601602dfeee812617374fb37f7b Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Fri, 20 Feb 2009 07:38:31 -0800 Subject: [PATCH] auto import from //branches/cupcake/...@132569 --- Package.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Package.cpp b/Package.cpp index 5d9e140..eb7d6f5 100644 --- a/Package.cpp +++ b/Package.cpp @@ -5,6 +5,7 @@ // #include "Main.h" #include "AaptAssets.h" +#include "ResourceTable.h" #include #include @@ -190,11 +191,20 @@ bail: ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp& assets) { + ResourceFilter filter; + status_t status = filter.parse(bundle->getConfigurations()); + if (status != NO_ERROR) { + return -1; + } + ssize_t count = 0; const size_t N = assets->getGroupEntries().size(); for (size_t i=0; igetGroupEntries()[i]; + if (!filter.match(ge.toParams())) { + continue; + } ssize_t res = processAssets(bundle, zip, assets, ge); if (res < 0) { return res; -- 2.45.2