Skip to content

Commit

Permalink
Reset the animation config at the end of each batch
Browse files Browse the repository at this point in the history
Reviewed By: sahrens

Differential Revision: D2931343

fb-gh-sync-id: 702b1df543fbdb9b244eb6cc2ce4d8557471004f
shipit-source-id: 702b1df543fbdb9b244eb6cc2ce4d8557471004f
  • Loading branch information
olinotteghem authored and facebook-github-bot-7 committed Feb 12, 2016
1 parent 5ca9245 commit 0651066
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,10 @@ public void run() {
operations.get(i).execute();
}
}

// Clear layout animation, as animation only apply to current UI operations batch.
mNativeViewHierarchyManager.clearLayoutAnimation();

if (mViewHierarchyUpdateDebugListener != null) {
mViewHierarchyUpdateDebugListener.onViewHierarchyUpdateFinished();
}
Expand Down Expand Up @@ -723,9 +727,6 @@ public void doFrameGuarded(long frameTimeNanos) {
mDispatchUIRunnables.get(i).run();
}
mDispatchUIRunnables.clear();

// Clear layout animation, as animation only apply to current UI operations batch.
mNativeViewHierarchyManager.clearLayoutAnimation();
}

ReactChoreographer.getInstance().postFrameCallback(
Expand Down

0 comments on commit 0651066

Please sign in to comment.