Loading tools/aapt/AaptAssets.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -1309,8 +1309,8 @@ bail: status_t AaptAssets::filter(Bundle* bundle) { WeakResourceFilter reqFilter; status_t err = reqFilter.parse(bundle->getConfigurations()); sp<WeakResourceFilter> reqFilter(new WeakResourceFilter()); status_t err = reqFilter->parse(bundle->getConfigurations()); if (err != NO_ERROR) { return err; } Loading @@ -1326,12 +1326,12 @@ status_t AaptAssets::filter(Bundle* bundle) preferredDensity = preferredConfig.density; } if (reqFilter.isEmpty() && preferredDensity == 0) { if (reqFilter->isEmpty() && preferredDensity == 0) { return NO_ERROR; } if (bundle->getVerbose()) { if (!reqFilter.isEmpty()) { if (!reqFilter->isEmpty()) { printf("Applying required filter: %s\n", bundle->getConfigurations().string()); } Loading Loading @@ -1383,7 +1383,7 @@ status_t AaptAssets::filter(Bundle* bundle) continue; } const ResTable_config& config(file->getGroupEntry().toParams()); if (!reqFilter.match(config)) { if (!reqFilter->match(config)) { if (bundle->getVerbose()) { printf("Pruning unneeded resource: %s\n", file->getPrintableSource().string()); Loading Loading
tools/aapt/AaptAssets.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -1309,8 +1309,8 @@ bail: status_t AaptAssets::filter(Bundle* bundle) { WeakResourceFilter reqFilter; status_t err = reqFilter.parse(bundle->getConfigurations()); sp<WeakResourceFilter> reqFilter(new WeakResourceFilter()); status_t err = reqFilter->parse(bundle->getConfigurations()); if (err != NO_ERROR) { return err; } Loading @@ -1326,12 +1326,12 @@ status_t AaptAssets::filter(Bundle* bundle) preferredDensity = preferredConfig.density; } if (reqFilter.isEmpty() && preferredDensity == 0) { if (reqFilter->isEmpty() && preferredDensity == 0) { return NO_ERROR; } if (bundle->getVerbose()) { if (!reqFilter.isEmpty()) { if (!reqFilter->isEmpty()) { printf("Applying required filter: %s\n", bundle->getConfigurations().string()); } Loading Loading @@ -1383,7 +1383,7 @@ status_t AaptAssets::filter(Bundle* bundle) continue; } const ResTable_config& config(file->getGroupEntry().toParams()); if (!reqFilter.match(config)) { if (!reqFilter->match(config)) { if (bundle->getVerbose()) { printf("Pruning unneeded resource: %s\n", file->getPrintableSource().string()); Loading