Skip to content

Commit

Permalink
Revert back to old Downloads provider implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
HBiSoft committed Aug 24, 2019
1 parent 64d2a47 commit e37ec75
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pickit/src/main/java/com/hbisoft/pickit/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ static String getRealPathFromURI_API19(final Context context, final Uri uri) {
else if (isDownloadsDocument(uri)) {
String fileName = getFilePath(context, uri);
if (fileName != null) {
fileName = Environment.getExternalStorageDirectory().toString() + "/Download/" + fileName;
File file = new File(fileName);
if (file.exists())
return fileName;
return Environment.getExternalStorageDirectory().toString() + "/Download/" + fileName;
}
String id = DocumentsContract.getDocumentId(uri);
if (id.startsWith("raw:")) {
Expand Down

0 comments on commit e37ec75

Please sign in to comment.