From: Dianne Hackborn Date: Wed, 25 Jan 2012 23:12:23 +0000 (-0800) Subject: Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc. X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/e2380bf2134791290afe00fb40b410c583d32c48 Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc. Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598 --- 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++;