mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
update src/gui/view/viewgroup.cc.
Fix removeView Signed-off-by: 侯歌 <hou731080@163.com>
This commit is contained in:
parent
5298fcdff1
commit
21b5ea0e11
@ -633,7 +633,7 @@ void ViewGroup::detachViewsFromParent(int start, int count){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ViewGroup::removeFromArray(int index){
|
void ViewGroup::removeFromArray(int index){
|
||||||
if (isViewTransitioning(mChildren[index])){
|
if (!isViewTransitioning(mChildren[index])){
|
||||||
mChildren[index]->mParent = nullptr;
|
mChildren[index]->mParent = nullptr;
|
||||||
}
|
}
|
||||||
if (index>=0&&index<mChildren.size()) {
|
if (index>=0&&index<mChildren.size()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user