summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2011-03-14 19:20:00 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-14 19:20:00 -0700
commita738a7d9816248ceafafe3404cd41ba6a4abd09f (patch)
treea6ca6d3ed14ffe69311d928f5b4b9bcf51b17220 /tools
parent75a1ef8d14de25850a171ee80fc7f9a5b70611b5 (diff)
parent4a223cdde591b5f3000a3de071d41c833a387578 (diff)
downloadframeworks_base-a738a7d9816248ceafafe3404cd41ba6a4abd09f.zip
frameworks_base-a738a7d9816248ceafafe3404cd41ba6a4abd09f.tar.gz
frameworks_base-a738a7d9816248ceafafe3404cd41ba6a4abd09f.tar.bz2
Merge "Add screen layout size as one of the resource filtering axes."
Diffstat (limited to 'tools')
-rw-r--r--tools/aapt/ResourceTable.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/aapt/ResourceTable.cpp b/tools/aapt/ResourceTable.cpp
index 5339566..10815a1 100644
--- a/tools/aapt/ResourceTable.cpp
+++ b/tools/aapt/ResourceTable.cpp
@@ -2607,6 +2607,9 @@ ResourceFilter::match(const ResTable_config& config) const
if (!match(AXIS_SCREENSIZE, config.screenSize)) {
return false;
}
+ if (!match(AXIS_SCREENLAYOUTSIZE, config.screenLayout&ResTable_config::MASK_SCREENSIZE)) {
+ return false;
+ }
if (!match(AXIS_VERSION, config.version)) {
return false;
}