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) {
4343 if (this == o ) return true ;
4444 if (o == null || getClass () != o .getClass ()) return false ;
4545 PageKey key = (PageKey ) o ;
46- if (mStartAfter == null && key .mStartAfter == null )
46+ if (mStartAfter == null && key .mStartAfter == null &&
47+ mEndBefore == null && key .mEndBefore == null )
4748 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 ());
5251 }
5352
5453 @ Override
You can’t perform that action at this time.
0 commit comments