recruit-lifestyle / WaveSwipeRefreshLayout

http://engineer.recruit-lifestyle.co.jp/techblog/2015-08-03-swipe-refresh-layout/
Apache License 2.0
1.92k stars 379 forks source link

Enable/Disable not working correctly #33

Open MFlisar opened 8 years ago

MFlisar commented 8 years ago

I'm trying to enable and disable the swipe refresh layout like following:

 srl.post(() -> srl.setEnabled(false));

This works 100% reliable, if I use a default swipe refresh layout but fails very often, if I use the WaveSwiperefreshLayout (fails means, the layout is still enabled after calling the function).

Any ideas how to solve that?

The problem is, that you use setEnabled internally as well to temporarily disable the view...

MFlisar commented 8 years ago

Made a pull request for this...