]> git.saurik.com Git - android/aapt.git/commitdiff
am 4bb78889: am 40277df7: Merge "Add "television" mode." into honeycomb-mr2
authorDianne Hackborn <hackbod@google.com>
Mon, 23 May 2011 23:16:54 +0000 (16:16 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Mon, 23 May 2011 23:16:54 +0000 (16:16 -0700)
* commit '4bb78889d04594c01a6af7f6d38c1764e9f575f9':
  Add "television" mode.

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;