From: Caisking <3449750381@qq.com> Date: Fri, 9 Aug 2024 10:02:20 +0000 (+0800) Subject: 优化 UIViewGroup Add 函数 添加错误可以查看组件信息 X-Git-Tag: release_V1.2.70_20241020_135402~679^2~25 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=f3e84325f2c7a96d9de2a255db2d046d18d7bcca;p=mirrors%2FFD230.git 优化 UIViewGroup Add 函数 添加错误可以查看组件信息 --- diff --git a/code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_view_group.cpp b/code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_view_group.cpp index 090a2bdd9..e8c7a0c40 100755 --- a/code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_view_group.cpp +++ b/code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_view_group.cpp @@ -44,7 +44,8 @@ void UIViewGroup::Add(UIView* view) return; } if (view->GetParent() != nullptr) { - GRAPHIC_LOGE("can not add view multi times"); + UIViewType type = view->GetViewType(); + GRAPHIC_LOGE("can not add view multi times %d",type); return; }