pull/32/head
kunfei 5 years ago
parent d824372a2c
commit fb985a287c
  1. 5
      app/src/main/java/io/legado/app/ui/main/findbook/FindBookAdapter.kt

@ -34,7 +34,10 @@ class FindBookAdapter:PagedListAdapter<BookSource, FindBookAdapter.MyViewHolder>
} }
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MyViewHolder { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MyViewHolder {
return MyViewHolder(LayoutInflater.from(parent.context).inflate(R.layout.item_find_book, parent, false)) return MyViewHolder(
LayoutInflater.from(parent.context)
.inflate(R.layout.item_find_book, parent, false)
)
} }
override fun onBindViewHolder(holder: MyViewHolder, position: Int): Unit = override fun onBindViewHolder(holder: MyViewHolder, position: Int): Unit =

Loading…
Cancel
Save