Skip to content

Commit

Permalink
* [android] fix duplicate add component child to list
Browse files Browse the repository at this point in the history
  • Loading branch information
sospartan committed Dec 12, 2016
1 parent aa42561 commit 3fd73d7
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -690,11 +690,6 @@ public void addChild(WXComponent child, int index) {
setRefreshOrLoading(child);
int count = mChildren.size();
index = index >= count ? -1 : index;
if (index == -1) {
mChildren.add(child);
} else {
mChildren.add(index, child);
}
bindViewType(child);

int adapterPosition = index == -1 ? mChildren.size() - 1 : index;
Expand Down

0 comments on commit 3fd73d7

Please sign in to comment.