Introduced in c68e7c8da78309a0b091c11379a8da5c6222572d (cherry picked from commit 974275a42993534b6d63ae6ba34b75c3c21b7627)
This commit is contained in:
parent
14de1973a3
commit
ac7e2909ba
@ -26,11 +26,12 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user