From: Joe Onorato Date: Thu, 15 Dec 2011 04:59:30 +0000 (-0800) Subject: Add a new ui mode for "appliance" X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/96e6f4ca1e3d6173051ffaac931129e6a60cbdd5?hp=-c Add a new ui mode for "appliance" The idea is that this is a device which is more-or-less headless. It might have some limited interaction capabilities, but it's not something that you want to rely on having. Change-Id: Icc9f674299f8dbe2b736a5622a4965904d27e49c --- 96e6f4ca1e3d6173051ffaac931129e6a60cbdd5 diff --git a/AaptAssets.cpp b/AaptAssets.cpp index 3d6537a..f0c215e 100644 --- a/AaptAssets.cpp +++ b/AaptAssets.cpp @@ -1019,6 +1019,11 @@ bool AaptGroupEntry::getUiModeTypeName(const char* name, (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) | ResTable_config::UI_MODE_TYPE_TELEVISION; return true; + } else if (strcmp(name, "appliance") == 0) { + if (out) out->uiMode = + (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) + | ResTable_config::UI_MODE_TYPE_APPLIANCE; + return true; } return false;