CircleRefreshLayout icon indicating copy to clipboard operation
CircleRefreshLayout copied to clipboard

Calling mRefreshLayout.finishRefreshing() does not finish animation if its too fast

Open Arbitrary-T opened this issue 9 years ago • 3 comments

For example if as soon as the user refreshes, and there is no data to update (for example no connection/website down etc...) the animation just keeps on going but you can still refresh again by pulling while its refreshing.

I solved this by using a handler and calling postdelayed with a delay of 1000ms this would finish the view's animation but its not ideal because of 1000ms delay.

Arbitrary-T avatar Aug 15 '15 08:08 Arbitrary-T

Yes finish refreshing does not happens mostly, which spoils the stable usability. Please fix asap

SanthoshDhandapani avatar Aug 26 '15 06:08 SanthoshDhandapani

I am still having exactly the same issue.

`refreshLayout = (CircleRefreshLayout) findViewById(R.id.refresh_layout);

    if (refreshLayout != null) {
        refreshLayout.setOnRefreshListener(new CircleRefreshLayout.OnCircleRefreshListener() {
            @Override
            public void completeRefresh() { }

            @Override
            public void refreshing() {
                buildNewsRequest(null);
            }
        });
    }

` in "buildNewsRequest()" is where I am calling refreshLayout.finishRefreshing(); and the method is being called but the animation just keep playing if buildNewsRequest() ends to soon.

thesnowgoose avatar Jul 23 '16 01:07 thesnowgoose

Yes same here. My network call finishes sometimes in as less as 5 ms. Then I set mRefresh.finishRefreshing(); the animation still goes on and can not dismiss only. Please let me know the work around if anybody has already found it. Thanks

xrnd avatar Nov 17 '16 11:11 xrnd