Browse Source

Merge branch '0.5.4' into 0.6.0

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

+ 2
- 4
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java View File

@@ -1,9 +1,5 @@
1 1
 package com.RNFetchBlob;
2 2
 
3
-import android.app.DownloadManager;
4
-import android.content.Context;
5
-import android.net.Uri;
6
-
7 3
 import com.facebook.react.bridge.Callback;
8 4
 import com.facebook.react.bridge.ReactApplicationContext;
9 5
 import com.facebook.react.bridge.ReadableArray;
@@ -102,6 +98,8 @@ public class RNFetchBlobReq implements Runnable{
102 98
 
103 99
         try {
104 100
 
101
+            req = new AsyncHttpClient();
102
+
105 103
             // use trusty SSL socket
106 104
             if(this.options.trusty) {
107 105
                 KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());