Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
通过图片path来判断图片的选中;
原来是通过imageItem对的引用判断是否相等的,这样对于拍照得到的图片,无法在修改图片选择的时候显示为选中状态。改成通过图片path来判断,解决这个问题,但是比较性能上会有一定损失。
为ImageItem添加一个拷贝构造方法
复杂场景下,我们可能需要继承ImageItem,此时再初始化子类的时候ImageItem需要一个拷贝构造函数。