From 718f0a8581eb536fc069c55782dd730c1731c2ed Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 20 May 2011 16:11:04 -0700 Subject: [PATCH] Add "television" mode. Change-Id: Ida1fdb61b036a8b489dbeda196fb4bc82e651b2b --- AaptAssets.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AaptAssets.cpp b/AaptAssets.cpp index 75535f8..4894196 100644 --- a/AaptAssets.cpp +++ b/AaptAssets.cpp @@ -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; -- 2.45.2