X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/8d382166e0f117a1967f51e1a7be00d9db23dc47..85e337687d80cee197cb38d42321241f7bbb340d:/AaptAssets.cpp diff --git a/AaptAssets.cpp b/AaptAssets.cpp index 3d6537a..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++;