From 065106678f249a1474118aecfea48928d66e834f Mon Sep 17 00:00:00 2001 From: Olivier Notteghem Date: Fri, 12 Feb 2016 00:04:28 -0800 Subject: [PATCH] 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 --- .../com/facebook/react/uimanager/UIViewOperationQueue.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java index 104e247b5..9b2d81057 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java @@ -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(