mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
修复OH_ArkUI_GetDrawableDescriptorFromResourceNapiValue接口用例失败问题
Signed-off-by: wangxinqiang007 <wangxinqiang2@huawei.com>
This commit is contained in:
parent
be7df5164a
commit
2ab176e295
@ -202,9 +202,6 @@ int32_t OH_ArkUI_GetDrawableDescriptorFromResourceNapiValue(
|
||||
new ArkUI_DrawableDescriptor { nullptr, nullptr, 0, nullptr, nullptr, nullptr, nullptr };
|
||||
drawable->resource = std::make_shared<ArkUI_Resource>();
|
||||
parseApi(value, drawable->resource.get());
|
||||
if (drawable->resource->src == "") {
|
||||
return OHOS::Ace::ERROR_CODE_PARAM_INVALID;
|
||||
}
|
||||
*drawableDescriptor = drawable;
|
||||
return OHOS::Ace::ERROR_CODE_NO_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user