优化 UIViewGroup Add 函数 添加错误可以查看组件信息 667/1
authorCaisking <3449750381@qq.com>
Fri, 9 Aug 2024 10:02:20 +0000 (18:02 +0800)
committerCaisking <3449750381@qq.com>
Fri, 9 Aug 2024 10:02:20 +0000 (18:02 +0800)
code/sdk/middleware/services/gui/uikit/ui/frameworks/components/ui_view_group.cpp

index 090a2bd..e8c7a0c 100755 (executable)
@@ -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;
     }