X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/97c9c5070df71a54747fa6e6c71a8788565b4ea2..98af7ea1b0adfebc62c645b5a9499dfb26ffe427:/AaptAssets.cpp diff --git a/AaptAssets.cpp b/AaptAssets.cpp index 7900ab7..3d6537a 100644 --- a/AaptAssets.cpp +++ b/AaptAssets.cpp @@ -1079,17 +1079,12 @@ 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_XHIGH; + if (out) out->density = ResTable_config::DENSITY_MEDIUM*2; 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++;