Back out "Track animations and flush them"

Summary:
Original commit changeset: b594d0e6e9b6

D20319824 introduced a problem in LayoutAnimations, which makes surfaced as the problem in T63911344. This diff reverts D20319824.

Changelog: [Internal]

Reviewed By: lunaleaps

Differential Revision: D20541918

fbshipit-source-id: ff72b839f57d39051122920a38b2632cbb5ec362
This commit is contained in:
Ramanpreet Nara
2020-03-19 20:46:32 -07:00
committed by Facebook GitHub Bot
parent 9c64bd5739
commit 950826f6b5
2 changed files with 1 additions and 43 deletions
@@ -366,8 +366,6 @@ public class NativeViewHierarchyManager {
UiThreadUtil.assertOnUiThread();
final Set<Integer> pendingDeletionTags = new HashSet<>();
mLayoutAnimator.cancelAnimationsForViewTag(tag);
final ViewGroup viewToManage = (ViewGroup) mTagsToViews.get(tag);
final ViewGroupManager viewManager = (ViewGroupManager) resolveViewManager(tag);
if (viewToManage == null) {
@@ -451,7 +449,6 @@ public class NativeViewHierarchyManager {
if (mLayoutAnimationEnabled && mLayoutAnimator.shouldAnimateLayout(viewToDestroy)) {
pendingDeletionTags.add(tagToDelete);
mLayoutAnimator.deleteView(
tag,
viewToDestroy,
new LayoutAnimationListener() {
@Override