mirror of
https://github.com/openharmony/miscservices_wallpaper.git
synced 2026-07-20 22:56:53 -04:00
Signed-off-by: lovechinamo <wangdongqi2@huawei.com>
Changes to be committed:
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user