Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个bug #90

Open
Nstd opened this issue Nov 26, 2018 · 0 comments
Open

一个bug #90

Nstd opened this issue Nov 26, 2018 · 0 comments

Comments

@Nstd
Copy link

Nstd commented Nov 26, 2018

public void onViewPosChanged(CardItemView changedView) {
// 调用offsetLeftAndRight导致viewPosition改变,会调到此处,所以此处对index做保护处理
int index = viewList.indexOf(changedView);
if (index + 2 > viewList.size()) {
return;
}
processLinkageView(changedView);
}

这里要改成index + 2 >= viewList.size(),否则调用processLinkageView(changedView);的时候ajustLinkageViewItem(changedView, rate2, 2); 会数组越界

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant