From 986b709f2ce7f6ccd131b85f27c195bd85114fa6 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 23 May 2021 14:10:29 -0400 Subject: [PATCH] Revert "Prevent view from being removed if a to is found (#5135) (#5152)" This reverts commit 974275a42993534b6d63ae6ba34b75c3c21b7627. --- .../ui/base/controller/OneWayFadeChangeHandler.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 e5357caaa2..8d6cb33120 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,12 +31,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 }