Set default 'display_applist' with 'NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY'
authorKyuho Jo <kyuho.jo@samsung.com>
Wed, 13 May 2015 02:31:48 +0000 (11:31 +0900)
committerKyuho Jo <kyuho.jo@samsung.com>
Wed, 13 May 2015 08:14:59 +0000 (17:14 +0900)
Change-Id: I0e8be20b70ccd4d1fcdb2197b54dd30c9de6046d
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
src/notification.c
src/notification_ipc.c

index d8e51275ecac7211c060c03644bf50c2b1d780b1..3b271d7b7e78b31cee21db97f7d1be881d306e62 100644 (file)
@@ -2248,7 +2248,7 @@ static notification_h _notification_create(notification_type_e type)
        noti->sound_type = NOTIFICATION_SOUND_TYPE_NONE;
        noti->vibration_type = NOTIFICATION_VIBRATION_TYPE_NONE;
        noti->led_operation = NOTIFICATION_LED_OP_OFF;
-       noti->display_applist = NOTIFICATION_DISPLAY_APP_ALL;
+       noti->display_applist = NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY;
        /*!
         * \NOTE
         * Other fields are already initialized with ZERO.
index 5c51b2312a8733cd317c35ad18a5ea0ac17c600f..0bd8255e5a8159ae6f22092ed219ca2df9adb75f 100644 (file)
@@ -991,7 +991,7 @@ static struct packet *_handler_delete_multiple(pid_t pid, int handle, const stru
        int buf[10] = {0,};
        int num_deleted = 0;
 
-       NOTIFICATION_ERR("delete_noti_multiple");
+       NOTIFICATION_INFO("delete_noti_multiple");
 
        if (!packet) {
                NOTIFICATION_ERR("a packet is null");
@@ -1009,21 +1009,23 @@ static struct packet *_handler_delete_multiple(pid_t pid, int handle, const stru
                        &(buf[8]),
                        &(buf[9]));
 
-       NOTIFICATION_ERR("packet data count:%d", ret);
-       NOTIFICATION_ERR("packet data num deleted:%d", num_deleted);
+       NOTIFICATION_INFO("packet data count:%d", ret);
+       NOTIFICATION_INFO("packet data num deleted:%d", num_deleted);
 
        int i = 0;
        for (i = 0 ; i < 10 ; i++) {
-               NOTIFICATION_ERR("packet data[%d]:%d",i, buf[i]);
+               NOTIFICATION_INFO("packet data[%d]:%d",i, buf[i]);
        }
 
        if (ret == 11) {
                notification_op *noti_op = notification_ipc_create_op(
                                NOTIFICATION_OP_DELETE, num_deleted, buf, num_deleted, NULL);
-               if (noti_op != NULL) {
-                       notification_call_changed_cb(noti_op, num_deleted);
-                       free(noti_op);
+               if (noti_op == NULL) {
+                       NOTIFICATION_ERR("notification_ipc_create_op failed");
+                       return NULL;
                }
+               notification_call_changed_cb(noti_op, num_deleted);
+               free(noti_op);
        }
 
        return NULL;