Merge "AAPT: Ignore densities specified in -c flag" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
da772234f6
@@ -41,6 +41,13 @@ WeakResourceFilter::parse(const String8& str)
|
|||||||
// Ignore the version
|
// Ignore the version
|
||||||
entry.second &= ~ResTable_config::CONFIG_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;
|
mConfigMask |= entry.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user