Skip to content

Commit

Permalink
State tracking during animations.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbutcher committed Nov 27, 2015
1 parent b02346d commit 6bede35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/io/plaidapp/ui/HomeGridItemAnimator.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public boolean animateChange(RecyclerView.ViewHolder oldHolder,
(FeedAdapter.DesignerNewsStoryHolder) newHolder;

// setup for anim
holder.itemView.setHasTransientState(true);
((ViewGroup) holder.pocket.getParent().getParent()).setClipChildren(false);
final int initialLeft = holder.pocket.getLeft();
final int initialTop = holder.pocket.getTop();
Expand Down Expand Up @@ -132,6 +131,7 @@ public boolean animateChange(RecyclerView.ViewHolder oldHolder,

@Override
public void onAnimationStart(Animator animation) {
holder.itemView.setHasTransientState(true);
dispatchAnimationStarted(holder);
}

Expand Down

0 comments on commit 6bede35

Please sign in to comment.