diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/OneWayFadeChangeHandler.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/OneWayFadeChangeHandler.kt index 8d6cb3312..e5357caaa 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/OneWayFadeChangeHandler.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/OneWayFadeChangeHandler.kt @@ -31,11 +31,12 @@ 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 }