From 907ee9e5456b79b404974cffe16d6c8f3d131080 Mon Sep 17 00:00:00 2001 From: zjun <565061763@qq.com> Date: Mon, 28 May 2018 22:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/main/java/com/fanwe/lib/animator/BaseAnimator.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/src/main/java/com/fanwe/lib/animator/BaseAnimator.java b/lib/src/main/java/com/fanwe/lib/animator/BaseAnimator.java index e504133..ffbfe55 100644 --- a/lib/src/main/java/com/fanwe/lib/animator/BaseAnimator.java +++ b/lib/src/main/java/com/fanwe/lib/animator/BaseAnimator.java @@ -176,11 +176,9 @@ public T startAsPop(boolean clone) imageView.attachTarget(target); imageView.setVisibility(target.isShown() ? View.VISIBLE : View.INVISIBLE); - T animator = (T) this; - if (clone) - animator = clone(); - + final T animator = clone ? clone() : (T) this; animator.setTarget(imageView).start(); + return animator; } return null;