From: seungha.son Date: Thu, 19 May 2016 13:43:18 +0000 (+0900) Subject: Initialize ongoing_flag and delete ongoing_flag conditional statement. X-Git-Tag: accepted/tizen/common/20160525.155800~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30f0f2793be915e35a5dcd4b56348af591d816f6;p=platform%2Fcore%2Fapi%2Fnotification.git Initialize ongoing_flag and delete ongoing_flag conditional statement. Signed-off-by: seungha.son Change-Id: Ib8148f50466875edbc17c87211ad391494196c22 --- diff --git a/src/notification.c b/src/notification.c index fa31786..4931239 100755 --- a/src/notification.c +++ b/src/notification.c @@ -1595,6 +1595,7 @@ static notification_h _notification_create(notification_type_e type) noti->led_operation = NOTIFICATION_LED_OP_OFF; noti->display_applist = NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY | NOTIFICATION_DISPLAY_APP_TICKER | NOTIFICATION_DISPLAY_APP_INDICATOR; noti->auto_remove = true; + noti->ongoing_flag = false; err_app_manager = app_manager_get_app_id(getpid(), &app_id); if (err_app_manager != APP_MANAGER_ERROR_NONE || app_id == NULL) { diff --git a/src/notification_ipc.c b/src/notification_ipc.c index f412bd7..e1e035e 100755 --- a/src/notification_ipc.c +++ b/src/notification_ipc.c @@ -1425,8 +1425,7 @@ EXPORT_API GVariant *notification_ipc_make_gvariant_from_noti(notification_h not if (noti->tag != NULL) g_variant_builder_add(&builder, "{iv}", NOTIFICATION_DATA_TYPE_TAG, g_variant_new_string((const gchar *)noti->tag)); - if (noti->ongoing_flag != 0) - g_variant_builder_add(&builder, "{iv}", NOTIFICATION_DATA_TYPE_ONGOING_FLAG, g_variant_new_int32(noti->ongoing_flag)); + g_variant_builder_add(&builder, "{iv}", NOTIFICATION_DATA_TYPE_ONGOING_FLAG, g_variant_new_int32(noti->ongoing_flag)); g_variant_builder_add(&builder, "{iv}", NOTIFICATION_DATA_TYPE_AUTO_REMOVE, g_variant_new_int32(noti->auto_remove));