summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>2021-06-21 11:24:30 +0530
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>2021-06-22 10:58:18 +0000
commitbca0e9ec6458f92795ca1f032ae94325cf285914 (patch)
tree47dd3e979bec2644d00865b03288637f9d44a96f
parent136cffc2316a73570491bde8cc134c76b578fab9 (diff)
downloadmsg-service-accepted/tizen_6.5_unified.tar.gz
msg-service-accepted/tizen_6.5_unified.tar.bz2
msg-service-accepted/tizen_6.5_unified.zip
Change-Id: I88f0784cebd9684bd3c00d00902216ea919e857f Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
-rw-r--r--manager/src/msg-manager-notification.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manager/src/msg-manager-notification.cpp b/manager/src/msg-manager-notification.cpp
index 4b00f08..cac8942 100644
--- a/manager/src/msg-manager-notification.cpp
+++ b/manager/src/msg-manager-notification.cpp
@@ -1291,7 +1291,8 @@ void setActiveText(notification_h noti_h, MSG_MGR_NOTI_INFO_S *noti_info)
wrn = snprintf(attach_string, sizeof(attach_string), "%d attachments", noti_info->active_media_cnt);
if(wrn<0)
MSG_MGR_INFO("snprintf was failed");
- notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, attach_string, MSG_PD_ATTACHMENTS, NOTIFICATION_VARIABLE_TYPE_INT, noti_info->active_media_cnt, NOTIFICATION_VARIABLE_TYPE_NONE);
+ if (notification_set_text(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, attach_string, MSG_PD_ATTACHMENTS, NOTIFICATION_VARIABLE_TYPE_INT, noti_info->active_media_cnt, NOTIFICATION_VARIABLE_TYPE_NONE) != NOTIFICATION_ERROR_NONE)
+ MSG_MGR_DEBUG("notification_set_text() failed");
} else if (noti_info->active_media_cnt == 1) {
setNotiText(noti_h, NOTIFICATION_TEXT_TYPE_CONTENT, "1 attachment", MSG_SINGLE_ATTACHMENT);
}