]> git.saurik.com Git - android/aapt.git/commitdiff
am aad0fcc9: Merge change 7783 into donut
authorAndroid (Google) Code Review <android-gerrit@google.com>
Mon, 20 Jul 2009 03:28:49 +0000 (20:28 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Mon, 20 Jul 2009 03:28:49 +0000 (20:28 -0700)
Merge commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54'

* commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54':
  Add "nodpi" density, and expose a bunch of density-related APIs.

AaptAssets.cpp

index 67af116d372dc5e67dff6bc01cba8e13d053fb2e..14cad2f0b8b9c461a8614db34511d2e064de9d78 100644 (file)
@@ -654,9 +654,15 @@ bool AaptGroupEntry::getDensityName(const char* name,
                                     ResTable_config* out)
 {
     if (strcmp(name, kWildcardName) == 0) {
-        if (out) out->density = 0;
+        if (out) out->density = ResTable_config::DENSITY_DEFAULT;
         return true;
     }
+    
+    if (strcmp(name, "nodpi") == 0) {
+        if (out) out->density = ResTable_config::DENSITY_NONE;
+        return true;
+    }
+    
     char* c = (char*)name;
     while (*c >= '0' && *c <= '9') {
         c++;