删除图片文件后更新图库
解决图片文件在删除的时候图片库不能更新的问题
public static void delMediaRecord(Context context, List<String> imagePaths) {
String[] pathArray = new String[imagePaths.size()];
pathArray = imagePaths.toArray(pathArray);
context.getContentResolver().delete(
MediaStore.Files.getContentUri("external"),
Files.FileColumns.DATA + " = ?", pathArray);
}