From 5d1a6c0380e58637ec744a75b86486aa1361904d Mon Sep 17 00:00:00 2001 From: Bnyro <82752168+Bnyro@users.noreply.github.com> Date: Sun, 13 Aug 2023 22:55:15 +0200 Subject: [PATCH] fix: download paused notification shown instead of completed --- .../main/java/com/github/libretube/services/DownloadService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/services/DownloadService.kt b/app/src/main/java/com/github/libretube/services/DownloadService.kt index 225c773ae..8786513c7 100644 --- a/app/src/main/java/com/github/libretube/services/DownloadService.kt +++ b/app/src/main/java/com/github/libretube/services/DownloadService.kt @@ -238,7 +238,7 @@ class DownloadService : LifecycleService() { } } - val completed = totalRead < item.downloadSize + val completed = totalRead >= item.downloadSize if (completed) { _downloadFlow.emit(item.id to DownloadStatus.Completed) } else {