Search for local manga by searching "local"
This commit is contained in:
parent
ad8c69aa15
commit
5587080c95
1 changed files with 4 additions and 2 deletions
|
@ -69,8 +69,10 @@ class LibraryItem(val manga: LibraryManga, private val libraryAsList: Preference
|
||||||
*/
|
*/
|
||||||
override fun filter(constraint: String): Boolean {
|
override fun filter(constraint: String): Boolean {
|
||||||
val sourceManager by injectLazy<SourceManager>()
|
val sourceManager by injectLazy<SourceManager>()
|
||||||
val sourceName = sourceManager.getOrStub(manga.source).name
|
val sourceName = if (manga.source == 0L) "Local" else
|
||||||
return manga.title.contains(constraint, true) ||
|
sourceManager.getOrStub(manga.source).name
|
||||||
|
return manga.currentTitle().contains(constraint, true) ||
|
||||||
|
manga.originalTitle().contains(constraint, true) ||
|
||||||
(manga.currentAuthor()?.contains(constraint, true) ?: false) ||
|
(manga.currentAuthor()?.contains(constraint, true) ?: false) ||
|
||||||
(manga.currentArtist()?.contains(constraint, true) ?: false) ||
|
(manga.currentArtist()?.contains(constraint, true) ?: false) ||
|
||||||
sourceName.contains(constraint, true) ||
|
sourceName.contains(constraint, true) ||
|
||||||
|
|
Reference in a new issue