From 27f69f4e06961fdecd1078b2292d764a157e5e1c Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Thu, 21 Aug 2014 13:19:12 -0700 Subject: AAPT: mipmaps should not end up in Splits Mipmaps are never filtered, and so they will always end up in the base APK. Make sure they get omitted from any split. Change-Id: Id24b082bc9bd2d3f031a58bd0de4d30b4f0de7e0 --- tools/aapt/Resource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/aapt/Resource.cpp') diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp index 869a6fc0b9c5..1d93b895409a 100644 --- a/tools/aapt/Resource.cpp +++ b/tools/aapt/Resource.cpp @@ -1399,7 +1399,8 @@ status_t buildResources(Bundle* bundle, const sp& assets, sp& split = splits.editItemAt(i); sp flattenedTable = new AaptFile(String8("resources.arsc"), AaptGroupEntry(), String8()); - err = table.flatten(bundle, split->getResourceFilter(), flattenedTable); + err = table.flatten(bundle, split->getResourceFilter(), + flattenedTable, split->isBase()); if (err != NO_ERROR) { fprintf(stderr, "Failed to generate resource table for split '%s'\n", split->getPrintableName().string()); -- cgit v1.2.3-59-g8ed1b