From 6e5d020e2e2975ebe0ebad5caf8047acfca8b6c4 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 25 Jan 2012 15:12:23 -0800 Subject: [PATCH] Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc. Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598 --- AaptAssets.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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++; -- 2.45.2