From f9c44ee3a8beb2c658b671938e8c02f1d88ef18a Mon Sep 17 00:00:00 2001 From: 491138002 <491138002@qq.com> Date: Thu, 7 Sep 2017 17:52:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=B2=A1=E6=9C=89=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=8A=A5=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lzy/imagepicker/ImageDataSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagepicker/src/main/java/com/lzy/imagepicker/ImageDataSource.java b/imagepicker/src/main/java/com/lzy/imagepicker/ImageDataSource.java index a66e239..e5b75b9 100644 --- a/imagepicker/src/main/java/com/lzy/imagepicker/ImageDataSource.java +++ b/imagepicker/src/main/java/com/lzy/imagepicker/ImageDataSource.java @@ -122,7 +122,7 @@ public void onLoadFinished(Loader loader, Cursor data) { } } //防止没有图片报异常 - if (data.getCount() > 0) { + if (data.getCount() > 0 && allImages.size()>0) { //构造所有图片的集合 ImageFolder allImagesFolder = new ImageFolder(); allImagesFolder.name = activity.getResources().getString(R.string.ip_all_images);