mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 11:17:25 +01:00
Introduced in c68e7c8da7
This commit is contained in:
parent
98461f9bca
commit
974275a429
@ -31,11 +31,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())) {
|
||||||
|
container.removeView(from)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (from != null && (!isPush || removesFromViewOnPush())) {
|
|
||||||
container.removeView(from)
|
|
||||||
}
|
|
||||||
return animator
|
return animator
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user