Revert "Prevent view from being removed if a to is found (#5135) (#5152)"

This reverts commit 974275a429.
This commit is contained in:
arkon 2021-05-23 14:10:29 -04:00
parent fed6f44995
commit 986b709f2c

View File

@ -31,12 +31,11 @@ class OneWayFadeChangeHandler : FadeChangeHandler {
if (to != null) { if (to != null) {
val start: Float = if (toAddedToContainer) 0F else to.alpha val start: Float = if (toAddedToContainer) 0F else to.alpha
animator.play(ObjectAnimator.ofFloat(to, View.ALPHA, start, 1f)) animator.play(ObjectAnimator.ofFloat(to, View.ALPHA, start, 1f))
} else { }
if (from != null && (!isPush || removesFromViewOnPush())) { if (from != null && (!isPush || removesFromViewOnPush())) {
container.removeView(from) container.removeView(from)
} }
}
return animator return animator
} }