From 75d1913aafa587ca74e12231558d14044ad99bfc Mon Sep 17 00:00:00 2001 From: Carlos <2092019+CarlosEsco@users.noreply.github.com> Date: Tue, 23 Jun 2020 18:11:47 -0400 Subject: [PATCH] ignore fact that loader might be null (#3374) --- .../main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt index c42831f5b3..26eb150bb4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt @@ -666,7 +666,7 @@ class ReaderPresenter( * manager handles persisting it across process deaths. */ private fun enqueueDeleteReadChapters(chapter: ReaderChapter) { - if (!chapter.chapter.read || chapter.pageLoader !is DownloadPageLoader) return + if (!chapter.chapter.read) return val manga = manga ?: return launchIO {