X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/e29f4ada32b58d0644b02d271f158115960501dd..97c9c5070df71a54747fa6e6c71a8788565b4ea2:/AaptAssets.cpp?ds=sidebyside diff --git a/AaptAssets.cpp b/AaptAssets.cpp index 637c8b3..7900ab7 100644 --- a/AaptAssets.cpp +++ b/AaptAssets.cpp @@ -1079,12 +1079,17 @@ bool AaptGroupEntry::getDensityName(const char* name, if (out) out->density = ResTable_config::DENSITY_HIGH; return true; } - + if (strcmp(name, "xhdpi") == 0) { - if (out) out->density = ResTable_config::DENSITY_MEDIUM*2; + if (out) out->density = ResTable_config::DENSITY_XHIGH; return true; } - + + if (strcmp(name, "xxhdpi") == 0) { + if (out) out->density = ResTable_config::DENSITY_XXHIGH; + return true; + } + char* c = (char*)name; while (*c >= '0' && *c <= '9') { c++; @@ -2266,7 +2271,7 @@ status_t AaptAssets::filter(Bundle* bundle) return NO_ERROR; } - if (true || bundle->getVerbose()) { + if (bundle->getVerbose()) { if (!reqFilter.isEmpty()) { printf("Applying required filter: %s\n", bundle->getConfigurations());