Skip to content

Commit

Permalink
Merge pull request joltup#155 from austinried/filter-downloads-progre…
Browse files Browse the repository at this point in the history
…ss-by-id

Filter progress reports from DownloadManager by id
  • Loading branch information
RonRadtke authored Jun 24, 2022
2 parents 68840fc + 697ee45 commit c093d8f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public boolean handleMessage(Message msg) {
DownloadManager downloadManager = (DownloadManager) appCtx.getSystemService(Context.DOWNLOAD_SERVICE);

DownloadManager.Query query = new DownloadManager.Query();
query.setFilterById(downloadManagerId);

Cursor cursor = downloadManager.query(query);

Expand Down

0 comments on commit c093d8f

Please sign in to comment.