From: Dianne Hackborn Date: Mon, 13 Feb 2012 20:38:37 +0000 (-0800) Subject: am c1496d2d: Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc. X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/0bcf2860ef9648d5244d3fcc644e072ecb8bee04?hp=6d9fc1e5b07f3ae3c459b1b9f5fb3530a7cf5625 am c1496d2d: Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc. * commit 'c1496d2d9a496e4aba817a58ecb9e07fe55cdba5': Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc. --- 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++;