mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-10-29 11:49:33 +00:00
Fix downloads sometimes running in notification only (#7589)
This commit is contained in:
parent
fe7d13f53c
commit
419faed791
@ -250,6 +250,9 @@ public class MainActivity extends CastEnabledActivity {
|
||||
status = DownloadStatus.STATE_QUEUED;
|
||||
progress = 0;
|
||||
}
|
||||
if (updatedEpisodes.containsKey(downloadUrl) && status == DownloadStatus.STATE_COMPLETED) {
|
||||
continue; // In case of a duplicate, prefer running/queued over completed
|
||||
}
|
||||
updatedEpisodes.put(downloadUrl, new DownloadStatus(status, progress));
|
||||
}
|
||||
DownloadServiceInterface.get().setCurrentDownloads(updatedEpisodes);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user