Skip to content

Commit

Permalink
Fix issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
HBiSoft committed Dec 10, 2019
1 parent 09a0a43 commit 2358f9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pickit/src/main/java/com/hbisoft/pickit/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ else if (isDownloadsDocument(uri)) {
if (file.exists())
return id;
}
if (id.startsWith("raw%3A%2F")){
id = id.replaceFirst("raw%3A%2F", "");
File file = new File(id);
if (file.exists())
return id;
}
final Uri contentUri = ContentUris.withAppendedId(Uri.parse("content://downloads/public_downloads"), Long.valueOf(id));
return getDataColumn(context, contentUri, null, null);
}
Expand Down

0 comments on commit 2358f9a

Please sign in to comment.