From 37f607b51befb0806388f9dd0cf9caf71ac504f8 Mon Sep 17 00:00:00 2001 From: libo429 Date: Mon, 21 Oct 2024 09:27:19 +0800 Subject: [PATCH] change custom event to system event Signed-off-by: libo429 --- services/backup_sa/src/module_notify/notify_work_service.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services/backup_sa/src/module_notify/notify_work_service.cpp b/services/backup_sa/src/module_notify/notify_work_service.cpp index 093f06d20..f9e403a22 100644 --- a/services/backup_sa/src/module_notify/notify_work_service.cpp +++ b/services/backup_sa/src/module_notify/notify_work_service.cpp @@ -25,9 +25,6 @@ #include "want_params.h" namespace OHOS::FileManagement::Backup { -namespace { - const static std::string EVENT_NAME = "COMMON_EVENT_RESTORE_START"; -} NotifyWorkService::NotifyWorkService() {} NotifyWorkService::~NotifyWorkService() {} @@ -43,7 +40,7 @@ bool NotifyWorkService::NotifyBundleDetail(BJsonUtil::BundleDetailInfo bundleDet want.SetParam("userId", bundleDetailInfo.userId); want.SetParam("index", bundleDetailInfo.bundleIndex); want.SetParam("detail", bundleDetail); - want.SetAction(EVENT_NAME); + want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_RESTORE_START); EventFwk::CommonEventData commonData {want}; HILOGI("End publish event, bundleName is: %{public}s", bundleName.c_str()); return EventFwk::CommonEventManager::PublishCommonEvent(commonData); -- Gitee