From 4338c41112430003d6ea0e4a2cf8402dbe9dd1f3 Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 16 Jan 2020 21:46:45 -0500 Subject: [PATCH] Filter library items by artist as well --- app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryItem.kt | 1 + 1 file changed, 1 insertion(+) 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 83309764cd..f174a4154f 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 @@ -60,6 +60,7 @@ class LibraryItem(val manga: LibraryManga, private val libraryAsList: Preference override fun filter(constraint: String): Boolean { return manga.title.contains(constraint, true) || (manga.author?.contains(constraint, true) ?: false) || + (manga.artist?.contains(constraint, true) ?: false) || if (constraint.contains(",")) { val genres = manga.genre?.split(", ") constraint.split(",").all { containsGenre(it.trim(), genres) }