From 860914562207a4066f529c50937fc4f3b6e3f6dd Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 18 May 2020 20:26:20 -0400 Subject: [PATCH] Fixed sources with no tags in the manga not having the proper type --- .../main/java/eu/kanade/tachiyomi/data/database/models/Manga.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/database/models/Manga.kt b/app/src/main/java/eu/kanade/tachiyomi/data/database/models/Manga.kt index e38d8157fc..8e1e8833aa 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/database/models/Manga.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/database/models/Manga.kt @@ -71,7 +71,7 @@ interface Manga : SManga { fun mangaType(): Int { val sourceName = Injekt.get().getOrStub(source).name val currentTags = - genre?.split(",")?.map { it.trim().toLowerCase(Locale.US) } ?: return TYPE_MANGA + genre?.split(",")?.map { it.trim().toLowerCase(Locale.US) } ?: emptyList() return if (currentTags.any { tag -> tag.startsWith("japanese") || isMangaTag(tag) }) { TYPE_MANGA } else if (currentTags.any { tag -> tag.startsWith("english") || isComicTag(tag) } || isComicSource(