From cc9b77b8768924f2747caf09ff7b667bdfc85569 Mon Sep 17 00:00:00 2001 From: Bram van de Kerkhof Date: Wed, 26 Jul 2017 10:49:13 +0200 Subject: [PATCH] Simultaneous download will now show on start. (#911) --- .../main/java/eu/kanade/tachiyomi/data/download/Downloader.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt index ee2bed35f..f0aba1a18 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt @@ -114,6 +114,9 @@ class Downloader(private val context: Context, private val provider: DownloadPro val pending = queue.filter { it.status != Download.DOWNLOADED } pending.forEach { if (it.status != Download.QUEUE) it.status = Download.QUEUE } + // Show download notification when simultaneous download > 1. + notifier.onProgressChange(queue) + downloadsRelay.call(pending) return !pending.isEmpty() }