Reset the animation config at the end of each batch

Reviewed By: sahrens

Differential Revision: D2931343

fb-gh-sync-id: 702b1df543fbdb9b244eb6cc2ce4d8557471004f
shipit-source-id: 702b1df543fbdb9b244eb6cc2ce4d8557471004f
This commit is contained in:
Olivier Notteghem 2016-02-12 00:04:28 -08:00 committed by facebook-github-bot-7
parent 5ca9245067
commit 065106678f
1 changed files with 4 additions and 3 deletions

View File

@ -673,6 +673,10 @@ public class UIViewOperationQueue {
operations.get(i).execute();
}
}
// Clear layout animation, as animation only apply to current UI operations batch.
mNativeViewHierarchyManager.clearLayoutAnimation();
if (mViewHierarchyUpdateDebugListener != null) {
mViewHierarchyUpdateDebugListener.onViewHierarchyUpdateFinished();
}
@ -723,9 +727,6 @@ public class UIViewOperationQueue {
mDispatchUIRunnables.get(i).run();
}
mDispatchUIRunnables.clear();
// Clear layout animation, as animation only apply to current UI operations batch.
mNativeViewHierarchyManager.clearLayoutAnimation();
}
ReactChoreographer.getInstance().postFrameCallback(