X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/434f5cd086e41dd52eda77d5fcfa7034eb4d3a79..4f41c7f7892c7e65393723aa8fdffc236d959fb7:/AaptAssets.cpp diff --git a/AaptAssets.cpp b/AaptAssets.cpp index f0c215e..6ce665b 100644 --- a/AaptAssets.cpp +++ b/AaptAssets.cpp @@ -1084,12 +1084,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++;