mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
fix: download paused notification shown instead of completed
This commit is contained in:
parent
5f8335a6bb
commit
5d1a6c0380
@ -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