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:
Hans-Christoph Steiner 2019-03-27 12:05:45 +01:00
parent 7f22c3c221
commit 3a5f96e0b3

View File

@ -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);