diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-01-25 15:12:23 -0800 |
---|---|---|
committer | Ramanan Rajeswaran <ramanan@google.com> | 2012-02-13 12:01:56 -0800 |
commit | c1496d2d9a496e4aba817a58ecb9e07fe55cdba5 (patch) | |
tree | 0622bb911f314fbac490db11165c2ff046eeafeb /tools | |
parent | f11b6fbfc8bab9a09e37ef9866c0da247474f4cf (diff) | |
download | frameworks_base-c1496d2d9a496e4aba817a58ecb9e07fe55cdba5.zip frameworks_base-c1496d2d9a496e4aba817a58ecb9e07fe55cdba5.tar.gz frameworks_base-c1496d2d9a496e4aba817a58ecb9e07fe55cdba5.tar.bz2 |
Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.
Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
Diffstat (limited to 'tools')
-rw-r--r-- | tools/aapt/AaptAssets.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp index 3d6537a..7900ab7 100644 --- a/tools/aapt/AaptAssets.cpp +++ b/tools/aapt/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++; |