Show manga with no installed source. Based on PR #1345

This commit is contained in:
inorichi
2018-06-30 19:55:46 +02:00
parent fd825b1049
commit 3d1afe7cf2
11 changed files with 67 additions and 29 deletions
@@ -32,7 +32,8 @@ import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.io.File
import java.net.URLConnection
import java.util.*
import java.util.Comparator
import java.util.Date
/**
* Presenter of [ReaderActivity].
@@ -74,7 +75,7 @@ class ReaderPresenter(
/**
* Source of the manga.
*/
private val source by lazy { sourceManager.get(manga.source)!! }
private val source by lazy { sourceManager.getOrStub(manga.source) }
/**
* Chapter list for the active manga. It's retrieved lazily and should be accessed for the first