codeCheck

Signed-off-by: MisterE <smart_e@126.com>
This commit is contained in:
MisterE 2024-09-24 14:30:57 +08:00
commit 29dc6177f8
2 changed files with 4 additions and 2 deletions

View File

@ -84,7 +84,7 @@ public:
int32_t RegisterOffListener(const std::string& type, const sptr<IRemoteObject>& obj);
void NotifyDied(const sptr<IRemoteObject>& obj);
void NotifyDeviceOffline(const std::string& networkId);
void NotifyPackageRemove(const std::string& sinkBundleName);
void NotifyPackageRemoved(const std::string& sinkBundleName);
void OnDeviceScreenOff();
void OnContinueSwitchOff();
std::string GetContinueType(const std::string& bundleName);

View File

@ -561,13 +561,15 @@ void DMSContinueRecvMgr::NotifyDeviceOffline(const std::string& networkId)
HILOGI("NotifyDeviceOffline end");
}
void DMSContinueRecvMgr::NotifyPackageRemove(const std::string& sinkBundleName)
void DMSContinueRecvMgr::NotifyPackageRemoved(const std::string& sinkBundleName)
{
if (sinkBundleName.empty()) {
HILOGE("NotifyPackageRemove sinkBundleName empty");
return;
}
if (iconInfo_.bundleName != sinkBundleName) {
HILOGI("NotifyPackageRemove current sinkBundleName: %{public}s; removed package: %{public}s."
iconInfo_.bundleName.c_str(), sinkBundleName.c_str());
return;
}
HILOGI("NotifyPackageRemove begin. sinkBundleName: %{public}s.", sinkBundleName.c_str());