X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/57eb8d8693135a33a186fad3a4c854b5c13337fb..e8d920f9f31f6bc817539d87c1a4953e71b86eec:/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;