diff --git a/services/ans/src/notification_smart_reminder/smart_reminder_center.cpp b/services/ans/src/notification_smart_reminder/smart_reminder_center.cpp index 1e2addf0c1da37449b80000f7b89b5414a0e4427..8f95de83d943431367cbbf43082ca8cd2291c1d9 100644 --- a/services/ans/src/notification_smart_reminder/smart_reminder_center.cpp +++ b/services/ans/src/notification_smart_reminder/smart_reminder_center.cpp @@ -431,6 +431,9 @@ void SmartReminderCenter::InitPcPadDevices(const string &deviceType, std::string bundleName = request->GetOwnerBundleName(); int32_t userId = request->GetOwnerUserId(); + if (userId == SUBSCRIBE_USER_INIT) { + OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); + } AppExecFwk::BundleInfo bundleInfo; AppExecFwk::ApplicationInfo appInfo; AppExecFwk::BundleResourceInfo bundleResourceInfo;