X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/f1f3915b08588cb11eaca5b9d0b5bae293646fdc..2b01c9f24cb80551eb7ba65ca63d3ac92a68dec7:/AaptAssets.cpp diff --git a/AaptAssets.cpp b/AaptAssets.cpp index 75535f8..29d2b87 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; @@ -964,6 +969,11 @@ bool AaptGroupEntry::getDensityName(const char* name, return true; } + if (strcmp(name, "tvdpi") == 0) { + if (out) out->density = ResTable_config::DENSITY_TV; + return true; + } + if (strcmp(name, "hdpi") == 0) { if (out) out->density = ResTable_config::DENSITY_HIGH; return true;