Skip to content

Commit

Permalink
Merge pull request #54 from cmdominguez/error_pick_recent_file
Browse files Browse the repository at this point in the history
Fix path of files on select from 'Recent files'
  • Loading branch information
luisfuertes authored Aug 19, 2021
2 parents 9e0d2a6 + f8a854f commit b096ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/filepicker/FilePickerModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ else if (isDownloadsDocument(uri)) {
} else {
String prefix = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O ? "file:///" : "content://";
final Uri contentUri = ContentUris.withAppendedId(
Uri.parse(prefix + "downloads/public_downloads"), Long.valueOf(id));
Uri.parse(prefix + "downloads/public_downloads"), Long.valueOf(split[1]));

return getDataColumn(context, contentUri, null, null);
}
Expand Down

0 comments on commit b096ade

Please sign in to comment.