for (int i = 0; i < itemCount; i++)
{
const String* pThumbnailPath = static_cast<const String*>(pThumbnailList->GetAt(i));
- // TODO: check pThumbnailPath
std::unique_ptr<char[]> filePath(_StringConverter::CopyToCharArrayN(*pThumbnailPath));
r = ConvertNotificationResult(notification_set_image(notiHandle, thumbnailListEnum[i], filePath.get()));
SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set thumnail path failed.", GetErrorMessage(r));
}
else
{
- // TODO: Check the valid
const IList* pMessageTextList = pRequestImpl->GetMessageTextList();
if (pMessageTextList && pMessageTextList->GetCount())
{
{
int matchIndex;
// 2.1: Multiple layout has single line text for 2nd information text.
- if ((layout == NOTIFICATION_LY_NOTI_EVENT_MULTIPLE && E_SUCCESS) == (pText2->IndexOf(L'\t', 0, matchIndex)))
+ if ((layout == NOTIFICATION_LY_NOTI_EVENT_MULTIPLE) && (E_SUCCESS == (pText2->IndexOf(L'\t', 0, matchIndex))))
{
// Make two token
String subText;
std::unique_ptr<char[]> leftText(_StringConverter::CopyToCharArrayN(subText));
r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_INFO_2, leftText.get(),
NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
- SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
+ SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info2 Text failed.", GetErrorMessage(r));
subText.Clear();
if (E_SUCCESS == pText2->SubString(matchIndex+1, subText))
{
std::unique_ptr<char[]> rightText(_StringConverter::CopyToCharArrayN(subText));
r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, rightText.get(),
NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
- SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info1 Sub Text failed.", GetErrorMessage(r));
+ SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info2 Sub Text failed.", GetErrorMessage(r));
}
}
else
std::unique_ptr<char[]> leftText(_StringConverter::CopyToCharArrayN(*pText2));
r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_INFO_2, leftText.get(),
NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
- SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
+ SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info2 Text failed.", GetErrorMessage(r));
}
}
}
layout = NOTIFICATION_LY_ONGOING_PROGRESS;
}
}
- notification_set_layout(notiHandle, layout);
+ r = ConvertNotificationResult(notification_set_layout(notiHandle, layout));
+ SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_layout failure.", GetErrorMessage(r));
// For ongoing
if (isOngoing)