File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -901,6 +901,7 @@ private ListenerRegistration addSnapshotListenerInternal(
901
901
@ Nullable Activity activity ,
902
902
EventListener <QuerySnapshot > userListener ) {
903
903
904
+ // Convert from ViewSnapshots to QuerySnapshots.
904
905
EventListener <ViewSnapshot > viewListener =
905
906
(@ Nullable ViewSnapshot snapshot , @ Nullable FirebaseFirestoreException error ) -> {
906
907
if (error != null ) {
@@ -914,6 +915,7 @@ private ListenerRegistration addSnapshotListenerInternal(
914
915
userListener .onEvent (querySnapshot , null );
915
916
};
916
917
918
+ // Call the viewListener on the userExecutor.
917
919
AsyncEventListener <ViewSnapshot > asyncListener =
918
920
new AsyncEventListener <>(executor , viewListener );
919
921
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ public class ListenerRegistrationImpl implements ListenerRegistration {
27
27
/** The event listener for the query that raises events asynchronously. */
28
28
private final AsyncEventListener <ViewSnapshot > asyncEventListener ;
29
29
30
- /** Creates a new ListenerRegistration. Is activity-scoped if and only if activity is non-null. */
31
30
public ListenerRegistrationImpl (
32
31
FirestoreClient client ,
33
32
QueryListener queryListener ,
You can’t perform that action at this time.
0 commit comments