From cb357b0a165a4c048171faa830c7494aacd59fb7 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 8 Nov 2017 22:25:00 +0100 Subject: [PATCH] Fix some crashes --- .../eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt | 1 + .../eu/kanade/tachiyomi/data/glide/LibraryMangaUrlFetcher.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt index 389dd3822..8e74d8042 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/model/DownloadQueue.kt @@ -66,6 +66,7 @@ class DownloadQueue( val pageStatusSubject = PublishSubject.create() setPagesSubject(download.pages, pageStatusSubject) return@flatMap pageStatusSubject + .onBackpressureBuffer() .filter { it == Page.READY } .map { download } diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/glide/LibraryMangaUrlFetcher.kt b/app/src/main/java/eu/kanade/tachiyomi/data/glide/LibraryMangaUrlFetcher.kt index 0f8b55fcb..5fec42af7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/glide/LibraryMangaUrlFetcher.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/glide/LibraryMangaUrlFetcher.kt @@ -39,11 +39,11 @@ class LibraryMangaUrlFetcher(private val networkFetcher: DataFetcher