X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/f1f3915b08588cb11eaca5b9d0b5bae293646fdc..465c2ef57a5e150530681ac38f759c4850686952:/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;