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
@@ -71,7 +71,7 @@ class MigrationPresenter(
private fun findSourcesWithManga(library: List<Manga>): List<SourceItem> {
val header = SelectionHeader()
return library.map { it.source }.toSet()
.mapNotNull { if (it != LocalSource.ID) sourceManager.get(it) else null }
.mapNotNull { if (it != LocalSource.ID) sourceManager.getOrStub(it) else null }
.map { SourceItem(it, header) }
}