mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Merge pull request #4460 from libre-tube/fix-download-notification
fix: download paused notification shown instead of completed
This commit is contained in:
commit
0fcc1e6f79
@ -238,7 +238,7 @@ class DownloadService : LifecycleService() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val completed = totalRead < item.downloadSize
|
val completed = totalRead >= item.downloadSize
|
||||||
if (completed) {
|
if (completed) {
|
||||||
_downloadFlow.emit(item.id to DownloadStatus.Completed)
|
_downloadFlow.emit(item.id to DownloadStatus.Completed)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user