We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8edbfc8 commit 3307e50Copy full SHA for 3307e50
android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilReq.java
@@ -197,7 +197,7 @@ public boolean handleMessage(Message msg) {
197
cursor.close();
198
199
ReactNativeBlobUtilProgressConfig reportConfig = getReportProgress(taskId);
200
- float progress = (total != -1) ? written / total : 0;
+ float progress = (total > 0) ? written / total : 0;
201
202
if (reportConfig != null && reportConfig.shouldReport(progress /* progress */)) {
203
WritableMap args = Arguments.createMap();
0 commit comments