{
notification_free(core);
}
-
+ service_destroy(svc);
return r;
}
snprintf(buffer, 256, "%ls", appId.GetPointer());
app_manager_get_app_icon_path(buffer, &pIcon);
- notification_set_image(core, NOTIFICATION_IMAGE_TYPE_ICON, pIcon);
+ r = ConvertNotificationResult(notification_set_image(core, NOTIFICATION_IMAGE_TYPE_ICON, pIcon));
+ SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set icon failed.", GetErrorMessage(r));
app_manager_get_app_name(buffer, &pName);
- notification_set_text(core, NOTIFICATION_TEXT_TYPE_TITLE, pName, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
+ r = ConvertNotificationResult(notification_set_text(core, NOTIFICATION_TEXT_TYPE_TITLE, pName, NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
+ SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set title text failed.", GetErrorMessage(r));
r = arg.Construct(launchArguments);
SysTryCatch(NID_APP, !IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r));
{
free(pName);
}
-
+ service_destroy(svc);
return r;
}
if (pMsg)
{
- notification_set_text(core, NOTIFICATION_TEXT_TYPE_CONTENT, pMsg.get(), NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
+ r = ConvertNotificationResult(notification_set_text(core, NOTIFICATION_TEXT_TYPE_CONTENT, pMsg.get(), NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
+ SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set title text failed.", GetErrorMessage(r));
}
if (!titleText.IsEmpty())
{
pTitleText = _StringConverter::CopyToCharArrayN(titleText);
- notification_set_text(core, NOTIFICATION_TEXT_TYPE_TITLE, pTitleText, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
+ r = ConvertNotificationResult(notification_set_text(core, NOTIFICATION_TEXT_TYPE_TITLE, pTitleText, NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
+ SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set title text failed.", GetErrorMessage(r));
}
if (!iconPath.IsEmpty())
{
pIconPath = _StringConverter::CopyToCharArrayN(iconPath);
- notification_set_image(core, NOTIFICATION_IMAGE_TYPE_ICON, pIconPath);
+ r = ConvertNotificationResult(notification_set_image(core, NOTIFICATION_IMAGE_TYPE_ICON, pIconPath));
+ SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set icon failed.", GetErrorMessage(r));
}
if (!soundPath.IsEmpty())
{
pSoundPath = _StringConverter::CopyToCharArrayN(soundPath);
- notification_set_sound(core, NOTIFICATION_SOUND_TYPE_USER_DATA, pSoundPath);
+ r = ConvertNotificationResult(notification_set_sound(core, NOTIFICATION_SOUND_TYPE_USER_DATA, pSoundPath));
+ SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification set sound failed.", GetErrorMessage(r));
}
app_get_id(&pkgname);
{
notification_free(core);
}
-
+ service_destroy(svc);
return r;
}