提交 0e2ae8ce 编写于 作者: O openharmony_ci 提交者: Gitee

!159 disable assert in when add child multi times

Merge pull request !159 from pssea/master
......@@ -41,12 +41,10 @@ void UIViewGroup::Add(UIView* view)
{
if ((view == this) || (view == nullptr)) {
GRAPHIC_LOGE("view can not be nullptr and added to self");
ASSERT(0);
return;
}
if (view->GetParent() != nullptr) {
GRAPHIC_LOGE("can not add view multi times");
ASSERT(0);
return;
}
......@@ -72,13 +70,11 @@ void UIViewGroup::Insert(UIView* prevView, UIView* insertView)
{
if ((insertView == nullptr) || (insertView == this)) {
GRAPHIC_LOGE("insertView can not be nullptr and insert to self");
ASSERT(0);
return;
}
if (insertView->GetParent() != nullptr) {
GRAPHIC_LOGE("can not insert view multi times");
ASSERT(0);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册