提交 0ad5da84 编写于 作者: G guyuanzhang

Description: fix ui_list only csn set adapter once

Sig:graphic
Feature or Bugfix:Feature
Binary Source:No
Signed-off-by: Nguyuanzhang <zhangguyuan@huawei.com>
上级 0535f290
......@@ -497,8 +497,12 @@ bool UIList::MoveChildStep(int16_t distance)
void UIList::SetAdapter(AbstractAdapter* adapter)
{
recycle_.SetAdapter(adapter);
recycle_.InitRecycle();
if (recycle_.adapter_ == nullptr) {
recycle_.SetAdapter(adapter);
recycle_.InitRecycle();
} else {
GRAPHIC_LOGE("UIList::SetAdapter adapter can only set once");
}
}
UIView* UIList::GetSelectView()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册