From 4dbca7c695a8595cd9e541529cd70e7ca59552d1 Mon Sep 17 00:00:00 2001 From: fangJinliang1 Date: Mon, 24 Jan 2022 10:32:31 +0800 Subject: [PATCH] trigger remove wantagent Signed-off-by: fangJinliang1 Change-Id: Ia638f3095e2811657c4b7c8d79c90f1bdbe26a30 --- services/ans/src/advanced_notification_service.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 484f975bc..eb2b4d0c7 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -1141,6 +1141,10 @@ ErrCode AdvancedNotificationService::RemoveFromNotificationList( return ERR_ANS_NOTIFICATION_IS_UNREMOVABLE; } notification = record->notification; + // delete or delete all, call the function + if (!isCancel) { + TriggerRemoveWantAgent(record->request); + } notificationList_.remove(record); return ERR_OK; } -- Gitee