From 488276d49858a43b146c0b273bbd05dc98867df1 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sat, 1 Oct 2022 16:32:52 +0200 Subject: [PATCH] Tweak library search to allow for searching with source language suffix (#8123) --- .../main/java/eu/kanade/tachiyomi/ui/library/LibraryItem.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryItem.kt index 11e39afd35..9448c02568 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryItem.kt @@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.ui.library import eu.kanade.tachiyomi.data.database.models.LibraryManga import eu.kanade.tachiyomi.source.SourceManager +import eu.kanade.tachiyomi.source.getNameForMangaInfo import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.get @@ -23,7 +24,7 @@ class LibraryItem( * @return true if the manga should be included, false otherwise. */ fun filter(constraint: String): Boolean { - val sourceName by lazy { sourceManager.getOrStub(manga.source).name } + val sourceName by lazy { sourceManager.getOrStub(manga.source).getNameForMangaInfo() } val genres by lazy { manga.getGenres() } return manga.title.contains(constraint, true) || (manga.author?.contains(constraint, true) ?: false) ||