File tree 2 files changed +5
-16
lines changed
ReactAndroid/src/main/java/com/facebook/react/uimanager
2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -373,13 +373,12 @@ public synchronized void manageChildren(
373
373
if (mLayoutAnimationEnabled &&
374
374
mLayoutAnimator .shouldAnimateLayout (viewToRemove ) &&
375
375
arrayContains (tagsToDelete , viewToRemove .getId ())) {
376
- // Display the view in the parent after removal for the duration of the layout animation,
377
- // but pretend that it doesn't exist when calling other ViewGroup methods.
378
- viewManager .startViewTransition (viewToManage , viewToRemove );
376
+ // The view will be removed and dropped by the 'delete' layout animation
377
+ // instead, so do nothing
378
+ } else {
379
+ viewManager .removeViewAt (viewToManage , indexToRemove );
379
380
}
380
381
381
- viewManager .removeViewAt (viewToManage , indexToRemove );
382
-
383
382
lastIndexToRemove = indexToRemove ;
384
383
}
385
384
}
@@ -424,9 +423,7 @@ public synchronized void manageChildren(
424
423
mLayoutAnimator .deleteView (viewToDestroy , new LayoutAnimationListener () {
425
424
@ Override
426
425
public void onAnimationEnd () {
427
- // Already removed from the ViewGroup, we can just end the transition here to
428
- // release the child.
429
- viewManager .endViewTransition (viewToManage , viewToDestroy );
426
+ viewManager .removeView (viewToManage , viewToDestroy );
430
427
dropView (viewToDestroy );
431
428
}
432
429
});
Original file line number Diff line number Diff line change @@ -93,14 +93,6 @@ public void removeAllViews(T parent) {
93
93
}
94
94
}
95
95
96
- public void startViewTransition (T parent , View view ) {
97
- parent .startViewTransition (view );
98
- }
99
-
100
- public void endViewTransition (T parent , View view ) {
101
- parent .endViewTransition (view );
102
- }
103
-
104
96
/**
105
97
* Returns whether this View type needs to handle laying out its own children instead of
106
98
* deferring to the standard css-layout algorithm.
You can’t perform that action at this time.
0 commit comments