Skip to content

Commit 7ff7b85

Browse files
committed
Fix visual glitches, appearing from time to time
1 parent 8b7b4b0 commit 7ff7b85

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/main/java/com/proxerme/app/adapter/ConferenceAdapter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public int insertAtStart(@NonNull List<Conference> list) {
7272
currentPos++;
7373
}
7474

75+
if (currentPos > 0) {
76+
notifyItemRangeChanged(0, currentPos);
77+
}
78+
7579
return result;
7680
}
7781

app/src/main/java/com/proxerme/app/fragment/PagingFragment.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ private void handleResult(List<T> result, boolean insert) {
208208
} else {
209209
adapter.append(result);
210210
}
211-
212-
adapter.notifyDataSetChanged();
213211
}
214212

215213
private void showError() {

0 commit comments

Comments
 (0)