We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NineGridImageView类中setImagesData(List lists)方法中mImgDataList = lists;这样导致mImgDataList 与传入的参数的内存地址一致,会使oldShowCount与newShowCount的判断永远相等,使第二次调用setImagesData(List lists)报错崩溃。 应该将mImgDataList = lists;修改为mImgDataList = new ArrayList<>(lists);,这样保证了原本作者的意图。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
NineGridImageView类中setImagesData(List lists)方法中mImgDataList = lists;这样导致mImgDataList 与传入的参数的内存地址一致,会使oldShowCount与newShowCount的判断永远相等,使第二次调用setImagesData(List lists)报错崩溃。
应该将mImgDataList = lists;修改为mImgDataList = new ArrayList<>(lists);,这样保证了原本作者的意图。
The text was updated successfully, but these errors were encountered: