Skip to content

Commit

Permalink
notifyChange IndexOutOfBoundsException fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangll committed Oct 25, 2017
1 parent 51e6d03 commit 70dab25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public void onChanged() {
int delay = 0;
for (int i = 0; i < VIEW_COUNT; i++) {
CardItemView itemView = viewList.get(i);
if (i < adapter.getCount()) {
if (isShowing + i < adapter.getCount()) {
if (itemView.getVisibility() == View.VISIBLE) {
if (!reset) {
continue;
Expand Down

0 comments on commit 70dab25

Please sign in to comment.