DownloaderService: use canonical URL to fix progress updates
The download URL is not the unique ID, the canonical URL is. closes #1736
This commit is contained in:
parent
7f22c3c221
commit
3a5f96e0b3
@ -211,7 +211,7 @@ public class DownloaderService extends Service {
|
||||
@Override
|
||||
public void onProgress(long bytesRead, long totalBytes) {
|
||||
Intent intent = new Intent(Downloader.ACTION_PROGRESS);
|
||||
intent.setData(uri);
|
||||
intent.setData(canonicalUrl);
|
||||
intent.putExtra(Downloader.EXTRA_BYTES_READ, bytesRead);
|
||||
intent.putExtra(Downloader.EXTRA_TOTAL_BYTES, totalBytes);
|
||||
localBroadcastManager.sendBroadcast(intent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user