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

Fix Issue #1608 - retry() failing in FirestorePagingAdapter #1609

Merged
merged 3 commits into from
Mar 28, 2019

Conversation

PatilShreyas
Copy link
Contributor

I have fixed retry() failing and added a new method refresh() to refresh the list from the beginning as issue #1608

Copy link
Contributor

@samtstern samtstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve with one small change.

private final Observer<FirestoreDataSource> mDataSourceObserver = new Observer<FirestoreDataSource>() {
@Override
public void onChanged(@Nullable FirestoreDataSource source) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment inside here explaining why we need an empty observer so that future people who read this code know?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samtstern yes.
What comment should be added ?
Please suggest me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//Observer to hold the value for FirestoreDataSource ??

@PatilShreyas
Copy link
Contributor Author

Suggest me comment to write.

@samtstern
Copy link
Contributor

samtstern commented Mar 28, 2019 via email

@PatilShreyas
Copy link
Contributor Author

Fine!
I'm adding this.

@PatilShreyas
Copy link
Contributor Author

@samtstern We should add this in FirebaseRecyclerPagingLibrary too.
Is it OK to make changes in FirebaseRecyclerPagingAdapter in this PR?

@samtstern
Copy link
Contributor

@PatilShreyas yep that's fine with me. I'll wait to merge until those changes are made also

Updated a comment for Observer.
@samtstern samtstern merged commit 154904e into firebase:version-4.4.0-dev Mar 28, 2019
@samtstern samtstern added this to the 4.4.0 milestone Mar 28, 2019
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

Successfully merging this pull request may close these issues.

2 participants