]> git.saurik.com Git - android/aapt.git/commitdiff
Add "television" mode.
authorDianne Hackborn <hackbod@google.com>
Fri, 20 May 2011 23:11:04 +0000 (16:11 -0700)
committerDianne Hackborn <hackbod@google.com>
Mon, 23 May 2011 22:11:08 +0000 (15:11 -0700)
Change-Id: Ida1fdb61b036a8b489dbeda196fb4bc82e651b2b

AaptAssets.cpp

index 75535f8bfee6969554aa694908db1edbdcc255eb..48941961ccb9bca973e99c9c7232a55de73308d4 100644 (file)
@@ -913,6 +913,11 @@ bool AaptGroupEntry::getUiModeTypeName(const char* name,
               (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE)
               | ResTable_config::UI_MODE_TYPE_CAR;
         return true;
+    } else if (strcmp(name, "television") == 0) {
+      if (out) out->uiMode =
+              (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE)
+              | ResTable_config::UI_MODE_TYPE_TELEVISION;
+        return true;
     }
 
     return false;