fix: download paused notification shown instead of completed

This commit is contained in:
Bnyro 2023-08-13 22:55:15 +02:00 committed by GitHub
parent 5f8335a6bb
commit 5d1a6c0380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {