]> git.saurik.com Git - android/aapt.git/commitdiff
Add a new ui mode for "appliance"
authorJoe Onorato <joeo@google.com>
Thu, 15 Dec 2011 04:59:30 +0000 (20:59 -0800)
committerJoe Onorato <joeo@google.com>
Thu, 15 Dec 2011 04:59:30 +0000 (20:59 -0800)
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

AaptAssets.cpp

index 3d6537a9013e41725bbeb4cfe2cca31a353973dc..f0c215eeffa5ce686d2059744a1ec047ba944793 100644 (file)
@@ -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;