We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79478e commit 9cbd9f9Copy full SHA for 9cbd9f9
1 file changed
firestore/src/main/java/com/firebase/ui/firestore/paging/PageKey.java
@@ -43,12 +43,11 @@ public boolean equals(Object o) {
43
if (this == o) return true;
44
if (o == null || getClass() != o.getClass()) return false;
45
PageKey key = (PageKey) o;
46
- if (mStartAfter == null && key.mStartAfter == null)
+ if (mStartAfter == null && key.mStartAfter == null &&
47
+ mEndBefore == null && key.mEndBefore == null)
48
return true;
- if (mEndBefore == null && key.mEndBefore == null)
49
- return true;
50
- return mStartAfter.getId() == key.mStartAfter.getId() &&
51
- mEndBefore.getId() == key.mEndBefore.getId();
+ return mStartAfter.getId().equals(key.mStartAfter.getId()) &&
+ mEndBefore.getId().equals(key.mEndBefore.getId());
52
}
53
54
@Override
0 commit comments