diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt index d3a449b493..2a0b92aca2 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt @@ -99,10 +99,13 @@ class DownloadManager(context: Context) { * @param downloads value to set the download queue to */ fun reorderQueue(downloads: List) { + val wasPaused = downloader.isPaused() downloader.pause() downloader.queue.clear() downloader.queue.addAll(downloads) - downloader.start() + if(!wasPaused){ + downloader.start() + } } 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 bdccdb9670..e00c614202 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 @@ -144,6 +144,11 @@ class Downloader( notifier.paused = true } + /** + * Check if downloader is paused + */ + fun isPaused() = !isRunning + /** * Removes everything from the queue. *