contacts_query_destroy(query);
contacts_disconnect();
- if (disp_img_path == NULL){
- disp_img_path = g_strdup(NOTIFY_MISSED_CALL_ICON);
- } else if (b_is_single == false) {
- g_free(disp_img_path);
- disp_img_path = g_strdup(NOTIFY_MISSED_CALL_ICON);
- } else {
- dbg("contact");
- }
-
noti_flags = NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY | NOTIFICATION_DISPLAY_APP_LOCK | NOTIFICATION_DISPLAY_APP_INDICATOR | NOTIFICATION_DISPLAY_APP_TICKER;
noti_err = notification_set_display_applist(noti, noti_flags);
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);
+ 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);
+ 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);
+ 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, disp_img_path);
+ 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);
}
app_control_destroy(service);
}
- if (disp_img_path == NULL) {
- disp_img_path = g_strdup(NOTIFY_MISSED_CALL_ICON);
- }
-
noti_err = notification_set_time(noti, time(NULL));
if (noti_err != NOTIFICATION_ERROR_NONE) {
err("Fail to notification_set_time : %d", noti_err);
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);
+ 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);
+ 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_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, disp_img_path);
+ 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);
}