Fixed tickernoti wasn't deleted from DB
authoryoungsub ko <ys4610.ko@samsung.com>
Tue, 7 May 2013 05:47:56 +0000 (14:47 +0900)
committeryoungsub ko <ys4610.ko@samsung.com>
Tue, 7 May 2013 05:47:56 +0000 (14:47 +0900)
daemon/notifications/ticker.c

index e6a2148..8dde239 100755 (executable)
@@ -715,11 +715,6 @@ static void _quickpanel_ticker_noti_detailed_changed_cb(void *data, notification
 
        retif(op_list == NULL, ,"op_list is NULL");
 
-       if (_is_lockscreen_launched()) {
-               ERR("lockscreen launched, creating a ticker canceled");
-               return;
-       }
-
        if (num_op == 1) {
                notification_op_get_data(op_list, NOTIFICATION_OP_DATA_TYPE, &op_type);
                notification_op_get_data(op_list, NOTIFICATION_OP_DATA_PRIV_ID, &priv_id);
@@ -769,6 +764,12 @@ static void _quickpanel_ticker_noti_detailed_changed_cb(void *data, notification
                __ticker_only_noti_del(noti);
                notification_free(noti);
        } else if (applist & NOTIFICATION_DISPLAY_APP_TICKER) {
+               if (_is_lockscreen_launched()) {
+                       ERR("lockscreen launched, creating a ticker canceled");
+                       notification_free(noti);
+                       return;
+               }
+
                /* Display ticker */
                if (g_timer)
                        ecore_timer_del(g_timer);