Skip to content

Commit

Permalink
Fix for notifyDataSetChanged method. Issue Cleveroad#36
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubén Viguera Marañón committed Dec 31, 2019
1 parent e7faf67 commit fd656ff
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1643,12 +1643,8 @@ public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float ve

@Override
public void notifyDataSetChanged() {
recycleViewHolders(true);
mVisibleArea.set(mState.getScrollX(),
mState.getScrollY(),
mState.getScrollX() + mSettings.getLayoutWidth(),
mState.getScrollY() + mSettings.getLayoutHeight());
addViewHolders(mVisibleArea);
initItems();
notifyLayoutChanged();
}

@Override
Expand Down

0 comments on commit fd656ff

Please sign in to comment.