Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does FeedActivity set 'mPendingRefresh' as true ? #11

Open
leucosian opened this issue Aug 8, 2016 · 0 comments
Open

Does FeedActivity set 'mPendingRefresh' as true ? #11

leucosian opened this issue Aug 8, 2016 · 0 comments

Comments

@leucosian
Copy link

I thought that 'mPendingRefresh' (in FeedActivity) should be true in this callback.

mBinding.swipeContainer.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {

@Override
public void onRefresh() {

    // mPendingRefresh = true;
    mFeedController.fetchFeedAsync(true, mUserId);
}

});

As far as I know, mPendingRefresh represents whether SwipeRefreshLayout is refreshing or not.
So it might be set as true in somewhere to prevent duplicated request for refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant