Quellcode durchsuchen

Filter library items by artist as well

arkon vor 5 Jahren
Ursprung
Commit
4338c41112
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryItem.kt

+ 1 - 0
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) }