pull/51/head
kunfei 5 years ago
parent bc3b52d44b
commit 7aaae0ac3e
  1. 2
      app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksFragment.kt

@ -74,7 +74,7 @@ class BooksFragment : VMBaseFragment<BooksViewModel>(R.layout.fragment_books),
rv_bookshelf.layoutManager = LinearLayoutManager(context) rv_bookshelf.layoutManager = LinearLayoutManager(context)
booksAdapter = BooksAdapterList(requireContext(), this) booksAdapter = BooksAdapterList(requireContext(), this)
} else { } else {
rv_bookshelf.layoutManager = GridLayoutManager(context, bookshelfLayout) rv_bookshelf.layoutManager = GridLayoutManager(context, bookshelfLayout + 2)
booksAdapter = BooksAdapterGrid(requireContext(), this) booksAdapter = BooksAdapterGrid(requireContext(), this)
} }
rv_bookshelf.adapter = booksAdapter rv_bookshelf.adapter = booksAdapter

Loading…
Cancel
Save