]> git.saurik.com Git - android/aapt.git/commitdiff
Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.
authorDianne Hackborn <hackbod@google.com>
Wed, 25 Jan 2012 23:12:23 +0000 (15:12 -0800)
committerDianne Hackborn <hackbod@google.com>
Wed, 25 Jan 2012 23:14:50 +0000 (15:14 -0800)
Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598

AaptAssets.cpp

index f0c215eeffa5ce686d2059744a1ec047ba944793..6ce665b467f16f8062208831996ceb616dc10698 100644 (file)
@@ -1084,12 +1084,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++;