Skip to content

Commit c093d8f

Browse files
authored
Merge pull request RonRadtke#155 from austinried/filter-downloads-progress-by-id
Filter progress reports from DownloadManager by id
2 parents 68840fc + 697ee45 commit c093d8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilReq.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public boolean handleMessage(Message msg) {
185185
DownloadManager downloadManager = (DownloadManager) appCtx.getSystemService(Context.DOWNLOAD_SERVICE);
186186

187187
DownloadManager.Query query = new DownloadManager.Query();
188+
query.setFilterById(downloadManagerId);
188189

189190
Cursor cursor = downloadManager.query(query);
190191

0 commit comments

Comments
 (0)