diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/SourceManager.kt b/app/src/main/java/eu/kanade/tachiyomi/source/SourceManager.kt index 7c9486819..89ae2e951 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/SourceManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/SourceManager.kt @@ -49,7 +49,7 @@ open class SourceManager(private val context: Context) { LocalSource(context) ) - private inner class StubSource(override val id: Long) : Source { + inner class StubSource(override val id: Long) : Source { override val name: String get() = id.toString() diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt index 8210f11b7..5d09b136c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt @@ -917,6 +917,11 @@ class MangaController : } private fun downloadChapters(chapters: List) { + if (source is SourceManager.StubSource) { + activity?.toast(R.string.loader_not_implemented_error) + return + } + val view = view val manga = presenter.manga presenter.downloadChapters(chapters)