]> git.saurik.com Git - android/aapt.git/commitdiff
am 528c49f1: am b96cbbd1: Add "tv" density for 720p screens.
authorDianne Hackborn <hackbod@google.com>
Fri, 27 May 2011 21:27:46 +0000 (14:27 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Fri, 27 May 2011 21:27:46 +0000 (14:27 -0700)
* commit '528c49f112dce5f9687f30a9751e783196eca0c6':
  Add "tv" density for 720p screens.

AaptAssets.cpp

index 48941961ccb9bca973e99c9c7232a55de73308d4..29d2b872eadd61f55a903d8fb830a56907bd95bc 100644 (file)
@@ -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;