LOG(ERROR) << "Application info manifest data has not been found.";
return false;
}
- bool has_watch_catergory = false;
+ bool has_watch_category = false;
bool has_ime = false;
auto category_info =
GetManifestDataForKey<const wgt::parse::CategoryInfoList>(
app_keys::kTizenCategoryKey);
if (category_info) {
- has_watch_catergory = std::find_if(category_info->categories.begin(),
+ has_watch_category = std::find_if(category_info->categories.begin(),
category_info->categories.end(),
[](const std::string& category) {
return category == kCategoryWearableClock ||
application_x* application = reinterpret_cast<application_x*>(
calloc(1, sizeof(application_x)));
application->component_type =
- has_watch_catergory ? strdup("watchapp") : strdup("uiapp");
+ has_watch_category ? strdup("watchapp") : strdup("uiapp");
application->mainapp = strdup("true");
application->appid = strdup(app_info->id().c_str());
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_ime || no_display) ? strdup("true") :
- strdup("false");
- application->taskmanage = has_ime ? strdup("false") : strdup("true");
+ application->nodisplay = (has_watch_category || has_ime || no_display) ?
+ strdup("true") : strdup("false");
+ application->taskmanage = (has_watch_category || has_ime) ? strdup("false") :
+ strdup("true");
SetApplicationXDefaults(application);
- if (has_watch_catergory)
+ if (has_watch_category)
application->ambient_support =
strdup(app_info->ambient_support() ? "true" : "false");
else