feat:setEnable setRefreshing to false

This commit is contained in:
pengfei.zhou 2019-11-26 10:36:23 +08:00
parent 362ec833c9
commit 1f0a1a5e0a

View File

@ -159,6 +159,7 @@ public class DoricSwipeLayout extends ViewGroup implements NestedScrollingParent
private ValueAnimator headerViewAnimator; private ValueAnimator headerViewAnimator;
void reset() { void reset() {
mRefreshing = false;
if (headerViewAnimator != null && headerViewAnimator.isRunning()) { if (headerViewAnimator != null && headerViewAnimator.isRunning()) {
headerViewAnimator.cancel(); headerViewAnimator.cancel();
} }
@ -199,8 +200,6 @@ public class DoricSwipeLayout extends ViewGroup implements NestedScrollingParent
}); });
headerViewAnimator.setDuration(SCALE_DOWN_DURATION); headerViewAnimator.setDuration(SCALE_DOWN_DURATION);
headerViewAnimator.start(); headerViewAnimator.start();
} }
@Override @Override