summaryrefslogtreecommitdiffstats
path: root/tools/aapt
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-06-04 14:36:39 -0700
committerDianne Hackborn <hackbod@google.com>2010-06-04 14:36:39 -0700
commit588feee5e771de5ec71da213fbb1cba29392c690 (patch)
treefdfb7f705f3368a88410547ecd302737ad514725 /tools/aapt
parent2e3761ba43f634e97ac493f4b79e5e53954a1491 (diff)
downloadframeworks_base-588feee5e771de5ec71da213fbb1cba29392c690.zip
frameworks_base-588feee5e771de5ec71da213fbb1cba29392c690.tar.gz
frameworks_base-588feee5e771de5ec71da213fbb1cba29392c690.tar.bz2
xhdpi
This is only a tool (aapt) change, and does not impact any current code. Change-Id: I562063f612af919eaadba8ac4868a95ff41ac840
Diffstat (limited to 'tools/aapt')
-rw-r--r--tools/aapt/AaptAssets.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp
index fc655a7..efc9619 100644
--- a/tools/aapt/AaptAssets.cpp
+++ b/tools/aapt/AaptAssets.cpp
@@ -888,6 +888,11 @@ bool AaptGroupEntry::getDensityName(const char* name,
return true;
}
+ if (strcmp(name, "xhdpi") == 0) {
+ if (out) out->density = ResTable_config::DENSITY_MEDIUM*2;
+ return true;
+ }
+
char* c = (char*)name;
while (*c >= '0' && *c <= '9') {
c++;