diff --git a/services/common/src/bundle_active_service.cpp b/services/common/src/bundle_active_service.cpp index d256d4c09a62408da42dc9d7e29c14fb0fc4ac2b..15e6e9a3a59ebafd97bb2a6937e8012dc2e0cbfc 100644 --- a/services/common/src/bundle_active_service.cpp +++ b/services/common/src/bundle_active_service.cpp @@ -202,8 +202,8 @@ bool BundleActiveService::SubscribeAppState() BUNDLE_ACTIVE_LOGE("SubscribeAppState appstateobserver is null, return"); return false; } -// LCOV_EXCL_STOP - int32_t err = appManager->RegisterApplicationStateObserver(appStateObserver_); + std::vector bundleNameList = {}; + int32_t err = appManager->RegisterApplicationStateObserver(appStateObserver_, bundleNameList); if (err != 0) { BUNDLE_ACTIVE_LOGE("RegisterApplicationStateObserver failed. err:%{public}d", err); return false;