pull/1705/head
kunfei 3 years ago
parent 424b55a97f
commit 648c6783ff
  1. 2
      app/src/main/java/io/legado/app/ui/book/searchContent/SearchContentAdapter.kt

@ -39,7 +39,7 @@ class SearchContentAdapter(context: Context, val callback: Callback) :
override fun registerListener(holder: ItemViewHolder, binding: ItemSearchListBinding) {
holder.itemView.setOnClickListener {
getItem(holder.layoutPosition)?.let {
if (!it.query.isBlank()) callback.openSearchResult(it)
if (it.query.isNotBlank()) callback.openSearchResult(it)
}
}
}

Loading…
Cancel
Save