From 6c43d49815807eb94ef50a7fadf12d57fa51cca4 Mon Sep 17 00:00:00 2001 From: fangJinliang1 Date: Mon, 20 Jun 2022 11:16:57 +0800 Subject: [PATCH] notification change publish common event Signed-off-by: fangJinliang1 Change-Id: I39196840b3c79e15ef9abe574c1b5b456901029d Signed-off-by: fangJinliang1 --- services/ans/src/advanced_notification_service.cpp | 1 + .../notification_services_test/notification_service_test.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 77d4781dc..f8ba47499 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -1581,6 +1581,7 @@ ErrCode AdvancedNotificationService::SetNotificationsEnabledForSpecialBundle( } if (result == ERR_OK) { NotificationSubscriberManager::GetInstance()->NotifyEnabledNotificationChanged(bundleData); + PublishSlotChangeCommonEvent(bundle); } } else { // Remote revice diff --git a/test/bechmarktest/notification_services_test/notification_service_test.cpp b/test/bechmarktest/notification_services_test/notification_service_test.cpp index 2cb35a80a..4968862a2 100644 --- a/test/bechmarktest/notification_services_test/notification_service_test.cpp +++ b/test/bechmarktest/notification_services_test/notification_service_test.cpp @@ -249,7 +249,6 @@ BENCHMARK_F(BenchmarkNotificationService, CancelNotificationTestCase001)(benchma state.SkipWithError("CancelNotificationTestCase001 publish failed."); } advancedNotificationService_->Cancel(id, label); - id++; } } -- Gitee