Skip to content

Commit 8504d1d

Browse files
committed
Fix nits
1 parent a2ccb7d commit 8504d1d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ParseUI-Widget/src/main/java/com/parse/ParseQueryAdapter.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,11 @@ public void loadObjects() {
372372
}
373373

374374
private void loadNextPage(final boolean shouldClear) {
375-
if (shouldClear && pager != null) {
376-
cts.cancel();
377-
pager = null;
375+
synchronized (lock) {
376+
if (shouldClear && pager != null) {
377+
cts.cancel();
378+
pager = null;
379+
}
378380
}
379381

380382
notifyOnLoadingListeners();

ParseUI-Widget/src/main/java/com/parse/widget/util/ParseQueryPager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public interface OnObjectsChangedCallback<T extends ParseQueryPager> {
6767
void onItemRangeInserted(T sender, int positionStart, int itemCount);
6868

6969
/**
70-
* Called whenever one or more items have been removed from the result set.
70+
* Called whenever one or more items have been moved from the result set.
7171
* @param sender The changing pager.
7272
* @param fromPosition The position from which the items were moved.
7373
* @param toPosition The destination position of the items.

0 commit comments

Comments
 (0)