-
Notifications
You must be signed in to change notification settings - Fork 616
Refactor Event Listeners #289
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
Conversation
Make it match iOS.
* Pull activity-scoping out ListenerRegistrationImpl--it's a totally separate concern. * Make the relationship between the various levels of listener clearer in the places where we construct them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the slow review! LGTM except a few nits.
firestore.getClient(), queryListener, activity, wrappedListener); | ||
QueryListener queryListener = firestore.getClient().listen(query, options, asyncListener); | ||
|
||
return ActivityScope.bind( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nifty.
firebase-firestore/src/main/java/com/google/firebase/firestore/Query.java
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/Query.java
Show resolved
Hide resolved
...ase-firestore/src/main/java/com/google/firebase/firestore/core/ListenerRegistrationImpl.java
Outdated
Show resolved
Hide resolved
/test smoke-tests-debug |
@wilhuff: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
While working on iOS's event listeners I realized that the platforms have a bunch of spurious differences that don't really need to be there.
Highlights:
Note: this is running slightly in advance of forthcoming iOS changes