优化
This commit is contained in:
@@ -70,8 +70,12 @@ fun Book.contains(word: String?): Boolean {
|
|||||||
if (word.isNullOrEmpty()) {
|
if (word.isNullOrEmpty()) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return name.contains(word) || author.contains(word)
|
return name.contains(word)
|
||||||
|| originName.contains(word) || origin.contains(word)
|
|| author.contains(word)
|
||||||
|
|| originName.contains(word)
|
||||||
|
|| origin.contains(word)
|
||||||
|
|| kind?.contains(word) == true
|
||||||
|
|| intro?.contains(word) == true
|
||||||
}
|
}
|
||||||
|
|
||||||
private val localUriCache by lazy {
|
private val localUriCache by lazy {
|
||||||
|
|||||||
Reference in New Issue
Block a user