Skip to content

Commit

Permalink
Fix selecting images from Download folder crash (Dhaval2404#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yahor Hryniuk committed Jun 26, 2023
1 parent 1ef2d9c commit 9445491
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ object FileUriUtils {
val fileName = getFilePath(context, uri)
if (fileName != null) {
val path =
Environment.getExternalStorageDirectory().toString() + "/Download/" + fileName
context.getExternalFilesDir("Download").toString() + "/" + fileName
if (File(path).exists()) {
return path
}
Expand Down

0 comments on commit 9445491

Please sign in to comment.