CircleRefreshLayout icon indicating copy to clipboard operation
CircleRefreshLayout copied to clipboard

Quickly finish refreshing.

Open xuncl opened this issue 8 years ago • 4 comments

If the user stops the freshing by CircleRefreshLayout.finishRefreshing() immediately after the refresh starts, the method AnimationView.startOutCir() will run after that and will reset the boolean AnimationView.mIsRefreshing as true again. Then the refreshing drawing will never stop. In this pr, the problem can be solved and make no damage to the animation effect.

xuncl avatar Mar 04 '16 12:03 xuncl

Tested works great

wscheffer avatar Mar 15 '16 09:03 wscheffer

@xuncl @wscheffer CircleRefreshLayout.finishRefreshing() the header view not back

tosslife avatar Apr 08 '16 09:04 tosslife

@xuncl @wscheffer I believe you should change:

        if (!mIsRefreshing) {
            applyDone();
        }

        if (isQuickStop){
            mIsRefreshing = false;
            isQuickStop = false;
        }

to

        if (isQuickStop){
            mIsRefreshing = false;
            isQuickStop = false;
        }

        if (!mIsRefreshing) {
            applyDone();
        }

kfarst avatar Jul 24 '16 21:07 kfarst

int CircleRefreshLayout.java

private static final long BACK_TOP_DUR = 380; private static final long REL_DRAG_DUR = 100;

fanrunqi avatar Aug 17 '17 06:08 fanrunqi