From 79dcc6e32d916f704a12c4fc492b5b11363fe678 Mon Sep 17 00:00:00 2001 From: Park Zhao Date: Wed, 4 Jul 2018 14:39:47 +0800 Subject: [PATCH] Update ImageDataSource.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixbug: 选择图片,点击图片预览,返回后图片列表为空 --- .../src/main/java/com/lzy/imagepicker/ImageDataSource.java | 1 + 1 file changed, 1 insertion(+) diff --git a/imagepicker/src/main/java/com/lzy/imagepicker/ImageDataSource.java b/imagepicker/src/main/java/com/lzy/imagepicker/ImageDataSource.java index e5b75b9..ce5a2f5 100644 --- a/imagepicker/src/main/java/com/lzy/imagepicker/ImageDataSource.java +++ b/imagepicker/src/main/java/com/lzy/imagepicker/ImageDataSource.java @@ -131,6 +131,7 @@ public void onLoadFinished(Loader loader, Cursor data) { allImagesFolder.images = allImages; imageFolders.add(0, allImagesFolder); //确保第一条是所有图片 } + data.moveToFirst(); } //回调接口,通知图片数据准备完成