提交 5d3bee94 编写于 作者: P pssea

Description: fix UISwipeView Revmove child page, then GetCurrentView

error issue
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I4N4KN
Feature or Bugfix: Feature
Binary Source:No
Signed-off-by: Nlizhiqi <lizhiqi1@huawei.com>
上级 f0b53172
......@@ -60,6 +60,9 @@ void UISwipeView::Remove(UIView* view)
return;
}
UIViewGroup::Remove(view);
if (curView_ == view) {
curView_ = nullptr;
}
SortChild();
Invalidate();
}
......@@ -267,6 +270,7 @@ void UISwipeView::SwitchToPage(int16_t dst, bool needAnimator)
return;
}
curIndex_ = dst;
curView_ = dstView;
int16_t xOffset = 0;
int16_t yOffset = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册