From 5073dec8ac496b7f8d6658d8e236d17d84d6f1b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Thu, 15 Jun 2023 22:40:52 +0800 Subject: [PATCH] Android: fix refreshable view cannot scroll to origin accurate --- .../src/main/java/pub/doric/refresh/DoricSwipeLayout.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/doric-android/doric/src/main/java/pub/doric/refresh/DoricSwipeLayout.java b/doric-android/doric/src/main/java/pub/doric/refresh/DoricSwipeLayout.java index d9ab2c4e..4c00ebc8 100644 --- a/doric-android/doric/src/main/java/pub/doric/refresh/DoricSwipeLayout.java +++ b/doric-android/doric/src/main/java/pub/doric/refresh/DoricSwipeLayout.java @@ -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