Signed-off-by: lovechinamo <wangdongqi2@huawei.com>

Changes to be committed:
This commit is contained in:
lovechinamo
2022-04-13 15:36:51 +08:00
parent 89df3ae9a3
commit d6cb8125ee
2 changed files with 2 additions and 2 deletions
@@ -371,7 +371,7 @@ bool WallpaperServiceProxy::RegisterWallpaperCallback(const sptr<IWallpaperCallb
HILOG_ERROR("callback is nullptr");
return false;
}
if (!data.WriteParcelable(callback->AsObject())) {
if (!data.WriteRemoteObject(callback->AsObject())) {
HILOG_ERROR("write subscribe type or parcel failed.");
return false;
}
+1 -1
View File
@@ -273,7 +273,7 @@ int32_t WallpaperServiceStub::OnWallpaperOff(MessageParcel &data, MessageParcel
int32_t WallpaperServiceStub::OnRegisterWallpaperCallback(MessageParcel &data, MessageParcel &reply)
{
HILOG_INFO(" WallpaperServiceStub::OnRegisterWallpaperCallback start");
sptr<IRemoteObject> object = data.ReadParcelable<IRemoteObject>();
sptr<IRemoteObject> object = data.ReadRemoteObject();
sptr<IWallpaperCallback> callbackProxy = iface_cast<IWallpaperCallback>(object);
if (callbackProxy == nullptr) {