err("Fail to notification_set_image : %d", noti_err);
}
- noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON_SUB, NOTIFY_MISSED_CALL_ICON_SUB);
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- err("Fail to notification_set_image : %d", noti_err);
- }
+ if (b_is_single == true) {
+ noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON_SUB, NOTIFY_MISSED_CALL_ICON_SUB);
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
+ err("Fail to notification_set_image : %d", noti_err);
+ }
- if (disp_img_path == NULL) {
- disp_img_path = g_strdup(NOTIFY_MISSED_CALL_ICON);
+ if (disp_img_path == NULL) {
+ disp_img_path = g_strdup(NOTIFY_MISSED_CALL_ICON);
- noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, disp_img_path);
+ noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, disp_img_path);
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
+ err("Fail to notification_set_image : %d", noti_err);
+ }
+ } else {
+ dbg("contact");
+
+ noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, disp_img_path);
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
+ err("Fail to notification_set_image : %d", noti_err);
+ }
+ }
+
+ noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, disp_img_path);
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
+ err("Fail to notification_set_image : %d", noti_err);
+ }
+ } else {
+ noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON_SUB, NULL);
if (noti_err != NOTIFICATION_ERROR_NONE) {
err("Fail to notification_set_image : %d", noti_err);
}
- } else if (b_is_single == false) {
- g_free(disp_img_path);
- disp_img_path = g_strdup(NOTIFY_MISSED_CALL_ICON);
- noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, disp_img_path);
+ noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, NULL);
if (noti_err != NOTIFICATION_ERROR_NONE) {
err("Fail to notification_set_image : %d", noti_err);
}
- } else {
- dbg("contact");
- noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, disp_img_path);
+ noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, NOTIFY_MISSED_CALL_IND_ICON);
if (noti_err != NOTIFICATION_ERROR_NONE) {
err("Fail to notification_set_image : %d", noti_err);
}
- }
- noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, disp_img_path);
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- err("Fail to notification_set_image : %d", noti_err);
+ noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, NOTIFY_MISSED_CALL_ICON);
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
+ err("Fail to notification_set_image : %d", noti_err);
+ }
}
noti_err = notification_set_pkgname(noti, CONTACTS_PKG);