Skip to content

Commit

Permalink
Fix issue #48
Browse files Browse the repository at this point in the history
  • Loading branch information
HBiSoft committed Apr 28, 2022
1 parent 60ded1a commit 9ccc0e4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pickit/src/main/java/com/hbisoft/pickit/PickiT.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@ else if (docId !=null && docId.startsWith("msf")) {
//Todo: Add checks for unknown file extensions

if (!subStringExtension.equals("jpeg") && !subStringExtension.equals(extensionFromMime) && uri.getScheme() != null && uri.getScheme().equals(ContentResolver.SCHEME_CONTENT)) {
// First check if the file is available
// With issue #48 the file is available
try {
File checkIfExist = new File(returnedPath);
if (checkIfExist.exists()){
pickiTCallbacks.PickiTonCompleteListener(returnedPath, false, false, true, "");
return;
}
}catch (Exception e){
//Ignore
}
isFromUnknownProvider = true;
downloadFile(uri);
return;
Expand Down

0 comments on commit 9ccc0e4

Please sign in to comment.