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...
I'm trying to enable and disable the swipe refresh layout like following:
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...