diff --git a/app/src/main/java/me/stefan/easybehavior/demo2/behavior/CoAliRefreshBehavior.java b/app/src/main/java/me/stefan/easybehavior/demo2/behavior/CoAliRefreshBehavior.java index 6718faa..965a3cc 100644 --- a/app/src/main/java/me/stefan/easybehavior/demo2/behavior/CoAliRefreshBehavior.java +++ b/app/src/main/java/me/stefan/easybehavior/demo2/behavior/CoAliRefreshBehavior.java @@ -213,10 +213,12 @@ public void onAnimationEnd(Animator animation) { isRecovering = false; mViewMoveDy = 0; mFingerMoveDy = 0; + isPining = false; } @Override public void onAnimationCancel(Animator animation) { + isPining = false; } @Override @@ -229,8 +231,10 @@ public void onAnimationRepeat(Animator animation) { abl.setBottom(mParentHeight); isRecovering = false; - + isPining = false; } + }else{ + isPining = false; } } @@ -269,8 +273,6 @@ public void onAnimationUpdate(ValueAnimator animation) { } public void stopPin() { - - isPining = false; recovery(mAppBarLayout); } @@ -306,4 +308,4 @@ public interface onRefrehViewActionListener { void onRefresh(); } -} \ No newline at end of file +}