Change behaivor of reporter_delete_all 44/227244/2
authormk5004.lee <mk5004.lee@samsung.com>
Wed, 11 Mar 2020 01:34:41 +0000 (10:34 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Wed, 11 Mar 2020 04:54:43 +0000 (13:54 +0900)
Change-Id: I38a6ae2a1e2c72bcbdda5b47067789c2ee8bb3b7
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
src/notification_ex_service.cc

index 50fefef..51b04fe 100644 (file)
@@ -47,6 +47,7 @@
 #include <notification-ex/button_item.h>
 #include <notification-ex/ex_util.h>
 #include <notification-ex/ievent_info_internal.h>
+#include <notification-ex/event_info_internal.h>
 #include <notification-ex/iitem_info_internal.h>
 #include <notification-ex/shared_file.h>
 #include <notification-ex/group_item.h>
@@ -600,9 +601,11 @@ class DPMManager : public Manager {
       list<shared_ptr<item::AbstractItem>> noti_list =
           DBManager::GetNotificationList(info.GetOwner(), facade_->GetUid(info),
               info.GetChannel());
-      for (auto& i : noti_list)
-        DoDelete(info, i);
-      facade_->LaunchDefaultViewer(noti_list, NOTIFICATION_OP_DELETE_ALL);
+      for (auto& i : noti_list) {
+        EventInfo event_info(EventInfo::Delete, info.GetOwner(), info.GetChannel());
+        DoDelete(event_info, i);
+      }
+      facade_->LaunchDefaultViewer(noti_list, NOTIFICATION_OP_DELETE);
     } else {
       int ret = DoDelete(info, deletedItem);
       if (ret == ERROR_NONE)