Android: fix refreshable view cannot scroll to origin accurate

This commit is contained in:
王劲鹏 2023-06-15 22:40:52 +08:00 committed by osborn
parent 7b979cb2b9
commit 5073dec8ac

View File

@ -197,10 +197,6 @@ public class DoricSwipeLayout extends ViewGroup implements NestedScrollingParent
public void onAnimationEnd(Animator animation) {
mRefreshView.stopAnimation();
mRefreshView.setVisibility(View.GONE);
// Return the circle to its start position
setTargetOffsetTopAndBottom(mOriginalOffsetTop - mCurrentTargetOffsetTop);
mCurrentTargetOffsetTop = mRefreshView.getTop();
}
@Override