pull/32/head
kunfei 5 years ago
parent 54333ffc4f
commit b71d317eeb
  1. 5
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt

@ -48,7 +48,10 @@ class BookshelfAdapter : PagedListAdapter<Book, BookshelfAdapter.MyViewHolder>(D
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MyViewHolder {
return MyViewHolder(LayoutInflater.from(parent.context).inflate(R.layout.item_bookshelf_list, parent, false))
return MyViewHolder(
LayoutInflater.from(parent.context)
.inflate(R.layout.item_bookshelf_list, parent, false)
)
}
override fun onBindViewHolder(holder: MyViewHolder, position: Int) {

Loading…
Cancel
Save