瀏覽代碼

Fix Android SDCardDir path #174 #207

Ben Hsieh 8 年之前
父節點
當前提交
4de633761f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

+ 1
- 1
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java 查看文件

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