Browse Source

Fix Android SDCardDir path #174 #207

Ben Hsieh 8 years ago
parent
commit
4de633761f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

+ 1
- 1
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java View File

200
         String state;
200
         String state;
201
         state = Environment.getExternalStorageState();
201
         state = Environment.getExternalStorageState();
202
         if (state.equals(Environment.MEDIA_MOUNTED)) {
202
         if (state.equals(Environment.MEDIA_MOUNTED)) {
203
-            res.put("SDCard", Environment.getExternalStorageDirectory().getAbsolutePath());
203
+            res.put("SDCardDir", Environment.getExternalStorageDirectory().getAbsolutePath());
204
         }
204
         }
205
         res.put("MainBundleDir", ctx.getApplicationInfo().dataDir);
205
         res.put("MainBundleDir", ctx.getApplicationInfo().dataDir);
206
         return res;
206
         return res;