You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, setRefreshing(..) is supposed to only be an UI action. The use case for this is, for example, on application start. The service has already begun loading (manually) and the UI needs to be updated accordingly.
Thank you for the response, It would be nice to have a method that forces calling onRefresh().
Let's say setRefreshing() for UI and refresh() for real refreshing that includes UI refreshing as well.
I assume that it should be called but instead only the progress bar continues spinning.
It seems you have a bug in the method
public void setRefreshing(){
state = State.REFRESHING;
scrollTo(0, 0);
setUiRefreshing();
setHeaderPadding(0);
This method should be changed to:
public void setRefreshing(){
setState(State.REFRESHING);
scrollTo(0, 0);
setUiRefreshing();
setHeaderPadding(0);
By setting the state this way the onRefreshListener.onRefresh(); is called.
The text was updated successfully, but these errors were encountered: