RxGalleryFinal icon indicating copy to clipboard operation
RxGalleryFinal copied to clipboard

进入相册,默认的"所有图片"选项,只显示了一小部分图片,其他正常图片未显示

Open keepgoodfeeling opened this issue 6 years ago • 3 comments

如题. 手机型号:8848 m2 android 4.4.4 用的是demo测试. @sheep0704

keepgoodfeeling avatar Nov 10 '17 02:11 keepgoodfeeling

只要选中打开摄像头 在点击OPEN图片按钮 然后直接返回 可见图片会越来越少 因为创建了空的图片文件,然后在下面方法中过滤掉了,返回时数量会达不到翻页数量,无法加载更多 MediaBean mediaBean = parseImageCursorAndCreateThumImage(context, cursor); if (mediaBean != null) { mediaBeanList.add(mediaBean); }

@Nullable private static MediaBean parseImageCursorAndCreateThumImage(Context context, Cursor cursor) { long size = cursor.getLong(cursor.getColumnIndex(MediaStore.Images.Media.SIZE)); String originalPath = cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA)); if (TextUtils.isEmpty(originalPath) || size <= 0 || !new File(originalPath).exists()) { return null; }

ReHxyll avatar Nov 15 '17 07:11 ReHxyll

请问解决问题了吗 我也遇到这个问题

yxmp avatar Dec 20 '17 03:12 yxmp

我也遇到了 小米6

erleizh avatar Apr 08 '18 03:04 erleizh