]> git.saurik.com Git - android/aapt.git/blobdiff - AaptAssets.cpp
Merge policy from frameworks/policies/base
[android/aapt.git] / AaptAssets.cpp
index 6e7a66da75ba69099591cf6f2262d92c84ff8db4..fc655a7abbb7e966d537fe1c56e9fe10d7146943 100644 (file)
@@ -820,7 +820,12 @@ bool AaptGroupEntry::getUiModeTypeName(const char* name,
     if (strcmp(name, kWildcardName) == 0) {
         if (out) out->uiMode =
                 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE)
-                | ResTable_config::UI_MODE_TYPE_NORMAL;
+                | ResTable_config::UI_MODE_TYPE_ANY;
+        return true;
+    } else if (strcmp(name, "desk") == 0) {
+      if (out) out->uiMode =
+              (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE)
+              | ResTable_config::UI_MODE_TYPE_DESK;
         return true;
     } else if (strcmp(name, "car") == 0) {
       if (out) out->uiMode =