diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 77d4781dc2e518c3e832150ea48f5dfbe5f74507..f8ba47499d24e80b850c783f7805d3df185cf49a 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 2cb35a80ac6d858ab725cd40b01555b5b1588b10..4968862a29fb87c41ea3b061bb76b9637222cd90 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++; } }