feat:setEnable setRefreshing to false
This commit is contained in:
parent
362ec833c9
commit
1f0a1a5e0a
@ -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
|
||||||
|
Reference in New Issue
Block a user