File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
firestore/src/main/java/com/firebase/ui/firestore/paging Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,11 @@ public boolean equals(Object o) {
43
43
if (this == o ) return true ;
44
44
if (o == null || getClass () != o .getClass ()) return false ;
45
45
PageKey key = (PageKey ) o ;
46
- if (mStartAfter == null && key .mStartAfter == null )
46
+ if (mStartAfter == null && key .mStartAfter == null &&
47
+ mEndBefore == null && key .mEndBefore == null )
47
48
return true ;
48
- if (mEndBefore == null && key .mEndBefore == null )
49
- return true ;
50
- return mStartAfter .getId () == key .mStartAfter .getId () &&
51
- mEndBefore .getId () == key .mEndBefore .getId ();
49
+ return mStartAfter .getId ().equals (key .mStartAfter .getId ()) &&
50
+ mEndBefore .getId ().equals (key .mEndBefore .getId ());
52
51
}
53
52
54
53
@ Override
You can’t perform that action at this time.
0 commit comments