const std::string kManifestVersion = "1.0.0";
const char kTizenPackageXmlNamespace[] = "http://tizen.org/ns/packages";
const char kImeCategoryName[] = "http://tizen.org/category/ime";
+const char kDownloadableFontCategoryName[] =
+ "http://tizen.org/category/downloadable_font";
+const char kTTSCategoryName[] = "http://tizen.org/category/tts";
const char kResWgt[] = "res/wgt";
const char kConfigFileName[] = "config.xml";
}
bool has_watch_category = false;
bool has_ime = false;
+ bool has_downloadable_font = false;
+ bool has_tts = false;
auto category_info =
GetManifestDataForKey<const wgt::parse::CategoryInfoList>(
app_keys::kTizenCategoryKey);
category_info->categories.end(),
kImeCategoryName)
!= category_info->categories.end();
+ has_downloadable_font = std::find(category_info->categories.begin(),
+ category_info->categories.end(),
+ kDownloadableFontCategoryName)
+ != category_info->categories.end();
+ has_tts = std::find(category_info->categories.begin(),
+ category_info->categories.end(),
+ kTTSCategoryName)
+ != category_info->categories.end();
}
// application data
auto settings_info =
GetManifestDataForKey<const wgt::parse::SettingInfo>(
wgt::application_widget_keys::kTizenSettingKey);
+
bool no_display = settings_info ? settings_info->no_display() : false;
- application->nodisplay = (has_watch_category || has_ime || no_display) ?
+ bool has_no_display_category =
+ has_watch_category || has_ime || has_tts || has_downloadable_font;
+
+ application->nodisplay = (has_no_display_category || no_display) ?
strdup("true") : strdup("false");
- application->taskmanage = (has_watch_category || has_ime) ? strdup("false") :
+ application->taskmanage = has_no_display_category ? strdup("false") :
strdup("true");
+
SetApplicationXDefaults(application);
if (has_watch_category)
application->ambient_support =