Browse Source

Fix Android upload progress

Ben Hsieh 8 years ago
parent
commit
6654df8668
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java

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

@@ -370,7 +370,7 @@ public class RNFetchBlobBody extends RequestBody{
370 370
      * @param written
371 371
      */
372 372
     private void emitUploadProgress(int written) {
373
-        if(!RNFetchBlobReq.isReportProgress(mTaskId))
373
+        if(!RNFetchBlobReq.isReportUploadProgress(mTaskId))
374 374
             return;
375 375
         WritableMap args = Arguments.createMap();
376 376
         args.putString("taskId", mTaskId);