am da772234: Merge "AAPT: Ignore densities specified in -c flag" into lmp-mr1-dev

* commit 'da772234f6f9498bf02f31448bda16e9fcbd6bd2':
  AAPT: Ignore densities specified in -c flag
This commit is contained in:
Adam Lesinski
2014-11-11 20:26:24 +00:00
committed by Android Git Automerger

View File

@@ -41,6 +41,13 @@ WeakResourceFilter::parse(const String8& str)
// Ignore the version
entry.second &= ~ResTable_config::CONFIG_VERSION;
// Ignore any densities. Those are best handled in --preferred-density
if ((entry.second & ResTable_config::CONFIG_DENSITY) != 0) {
fprintf(stderr, "warning: ignoring flag -c %s. Use --preferred-density instead.\n", entry.first.toString().string());
entry.first.density = 0;
entry.second &= ~ResTable_config::CONFIG_DENSITY;
}
mConfigMask |= entry.second;
}