Skip to content

Commit

Permalink
* [android] fix move child from index to index b within the same parent
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen committed Oct 1, 2016
1 parent 43cc313 commit 72259e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,8 @@ void moveDom(final String ref, final String parentRef, final int index) {
}
return;
}
if(domObject.parent.equals(parentObject)){
return ;
if (domObject.parent.equals(parentObject) && parentObject.index(domObject) == index) {
return;
}
domObject.parent.remove(domObject);
parentObject.add(domObject, index);
Expand Down

0 comments on commit 72259e7

Please sign in to comment.