diff --git a/circualreveal/src/main/java/io/codetail/animation/RevealAnimator.java b/circualreveal/src/main/java/io/codetail/animation/RevealAnimator.java index a5e1783..08e699f 100644 --- a/circualreveal/src/main/java/io/codetail/animation/RevealAnimator.java +++ b/circualreveal/src/main/java/io/codetail/animation/RevealAnimator.java @@ -94,14 +94,14 @@ public void onAnimationEnd(Animator animation) { } } - static class RevealFinishedJellyBeanMr1 extends SimpleAnimationListener { + static class RevealFinishedJellyBeanMr2 extends SimpleAnimationListener { WeakReference mReference; volatile Rect mInvalidateBounds; int mLayerType; @TargetApi(Build.VERSION_CODES.HONEYCOMB) - RevealFinishedJellyBeanMr1(RevealAnimator target, Rect bounds) { + RevealFinishedJellyBeanMr2(RevealAnimator target, Rect bounds) { mReference = new WeakReference<>(target); mInvalidateBounds = bounds; diff --git a/circualreveal/src/main/java/io/codetail/animation/ViewAnimationUtils.java b/circualreveal/src/main/java/io/codetail/animation/ViewAnimationUtils.java index 4383c91..8924164 100644 --- a/circualreveal/src/main/java/io/codetail/animation/ViewAnimationUtils.java +++ b/circualreveal/src/main/java/io/codetail/animation/ViewAnimationUtils.java @@ -67,8 +67,8 @@ public static SupportAnimator createCircularReveal(View view, static Animator.AnimatorListener getRevealFinishListener(RevealAnimator target, Rect bounds){ - if(SDK_INT >= 17){ - return new RevealAnimator.RevealFinishedJellyBeanMr1(target, bounds); + if(SDK_INT >= 18){ + return new RevealAnimator.RevealFinishedJellyBeanMr2(target, bounds); }else if(SDK_INT >= 14){ return new RevealAnimator.RevealFinishedIceCreamSandwich(target, bounds); }else {