From d8b49d09fa7a5cc0fc11bacc664c7ab09e23f720 Mon Sep 17 00:00:00 2001 From: samiraekami Date: Sat, 29 Nov 2014 11:06:45 +0330 Subject: [PATCH] Update FileUtils.java --- .../src/com/ipaulpro/afilechooser/utils/FileUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java b/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java index 25c8008..32920c8 100644 --- a/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java +++ b/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java @@ -284,9 +284,10 @@ else if (isExternalStorageDocument(uri)) { if ("primary".equalsIgnoreCase(type)) { return Environment.getExternalStorageDirectory() + "/" + split[1]; + } + else{ + return System.getEnv("SECONDARY_STORAGE") + "/" + split[1]; } - - // TODO handle non-primary volumes } // DownloadsProvider else if (isDownloadsDocument(uri)) {