Skip to content

Commit

Permalink
Fix bug with ItemAnimator.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbutcher committed Aug 24, 2016
1 parent 227a5ec commit d1a27df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/src/main/java/io/plaidapp/ui/DribbbleShot.java
Original file line number Diff line number Diff line change
Expand Up @@ -1212,9 +1212,12 @@ void setAnimateMoves(boolean animateMoves) {
}

@Override
public boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, int toX,
int toY) {
if (!animateMoves) return false;
public boolean animateMove(
RecyclerView.ViewHolder holder, int fromX, int fromY, int toX, int toY) {
if (!animateMoves) {
dispatchMoveFinished(holder);
return false;
}
return super.animateMove(holder, fromX, fromY, toX, toY);
}
}
Expand Down

0 comments on commit d1a27df

Please sign in to comment.