summaryrefslogtreecommitdiffstats
path: root/tools/aapt
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-05-27 13:40:26 -0700
committerDianne Hackborn <hackbod@google.com>2011-05-27 13:40:26 -0700
commitb96cbbd11c4590bec846212c33361e02293f18b5 (patch)
treeac02f12136339bb608c07d8b26eaae1cddccf792 /tools/aapt
parentff7622992f39d8e401ab23c5ce6a84f318906e52 (diff)
downloadframeworks_base-b96cbbd11c4590bec846212c33361e02293f18b5.zip
frameworks_base-b96cbbd11c4590bec846212c33361e02293f18b5.tar.gz
frameworks_base-b96cbbd11c4590bec846212c33361e02293f18b5.tar.bz2
Add "tv" density for 720p screens.
Change-Id: I028969b007f2fceea66947d77a2ae31ef1d1a630
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 4894196..29d2b87 100644
--- a/tools/aapt/AaptAssets.cpp
+++ b/tools/aapt/AaptAssets.cpp
@@ -969,6 +969,11 @@ bool AaptGroupEntry::getDensityName(const char* name,
return true;
}
+ if (strcmp(name, "tvdpi") == 0) {
+ if (out) out->density = ResTable_config::DENSITY_TV;
+ return true;
+ }
+
if (strcmp(name, "hdpi") == 0) {
if (out) out->density = ResTable_config::DENSITY_HIGH;
return true;