Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2022-11-04 10:08:17 +08:00
parent 2886f6e8f3
commit acd77d5b21

View File

@ -157,8 +157,10 @@ void ImCommonEventManager::EventSubscriber::DealWithRemoveEvent(const AAFwk::Wan
IMSA_HILOGI("bundleName = %{public}s, userId = %{public}d", bundleName.c_str(), userId);
MessageParcel *parcel = new MessageParcel();
parcel->WriteInt32(userId);
parcel->WriteString16(Str8ToStr16(bundleName));
if (!ITypesUtil::Marshal(*parcel, userId, Str8ToStr16(bundleName))) {
IMSA_HILOGE("Failed to write message parcel");
return;
}
Message *msg = new Message(MessageID::MSG_ID_PACKAGE_REMOVED, parcel);
MessageHandler::Instance()->SendMessage(msg);
}