ignore fact that loader might be null (#3374)

This commit is contained in:
Carlos 2020-06-23 18:11:47 -04:00 committed by GitHub
parent eb254d9c56
commit 75d1913aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {