Permalink
Browse files

add miui rules (including godzillaui)

  • Loading branch information...
iBotPeaches committed Oct 6, 2015
1 parent c02a10d commit eb06229e29362dded12f67cf0962f604e8214815
Showing with 21 additions and 0 deletions.
  1. +21 −0 tools/aapt/AaptConfig.cpp
View
@@ -477,6 +477,27 @@ bool parseUiModeType(const char* name, ResTable_config* out) {
(out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE)
| ResTable_config::UI_MODE_TYPE_WATCH;
return true;
+ } else if (strcmp(name, "smallui") == 0) {
+ if (out) out->uiMode =
+ (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE)
+ | 0xc;
+ return true;
+ } else if (strcmp(name, "mediumui") == 0) {
+ if (out) out->uiMode =
+ (out->uiMode&ResTable_config::MASK_UI_MODE_TYPE)
+ | 0xd;
+ return true;
+ } else if (strcmp(name, "largeui") == 0) {
+ if (out) out->uiMode =
+ (out->uiMode&ResTable_config::MASK_UI_MODE_TYPE)
+ | 0xe;
+ return true;
+ } else if (strcmp(name, "hugeui") == 0) {
+ if (out) out->uiMode = 0xf;
+ return true;
+ } else if (strcmp(name, "godzillaui") == 0) {
+ if (out) out->uiMode = 0xb;
+ return true;
}
return false;

0 comments on commit eb06229

Please sign in to comment.