This reverts commit 974275a42993534b6d63ae6ba34b75c3c21b7627. (cherry picked from commit 986b709f2ce7f6ccd131b85f27c195bd85114fa6)
This commit is contained in:
parent
e5131e1985
commit
ba0e353ea1
@ -26,12 +26,11 @@ class OneWayFadeChangeHandler : FadeChangeHandler {
|
||||
if (to != null) {
|
||||
val start: Float = if (toAddedToContainer) 0F else to.alpha
|
||||
animator.play(ObjectAnimator.ofFloat(to, View.ALPHA, start, 1f))
|
||||
} else {
|
||||
if (from != null && (!isPush || removesFromViewOnPush())) {
|
||||
container.removeView(from)
|
||||
}
|
||||
}
|
||||
|
||||
if (from != null && (!isPush || removesFromViewOnPush())) {
|
||||
container.removeView(from)
|
||||
}
|
||||
return animator
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user