X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/6e5d020e2e2975ebe0ebad5caf8047acfca8b6c4..d4e31cfa5a37e121e76254d064f43f153a92ff69:/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++;