Skip to content

Commit

Permalink
防止没有图片报异常
Browse files Browse the repository at this point in the history
  • Loading branch information
491138002 committed Sep 7, 2017
1 parent 1860c73 commit f9c44ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
}
}
//防止没有图片报异常
if (data.getCount() > 0) {
if (data.getCount() > 0 && allImages.size()>0) {

This comment has been minimized.

Copy link
@ganshenml

ganshenml May 14, 2019

allImages.size>0 这个判断未加入到0.6.1版本中。

This comment has been minimized.

Copy link
@lhr-hzsxkj

lhr-hzsxkj Aug 14, 2019

image
allImages.size>0 这个判断未加入到0.6.1版本中。

//构造所有图片的集合
ImageFolder allImagesFolder = new ImageFolder();
allImagesFolder.name = activity.getResources().getString(R.string.ip_all_images);
Expand Down

0 comments on commit f9c44ee

Please sign in to comment.