diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksFragment.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksFragment.kt index aa418bcfc..296c86172 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksFragment.kt @@ -74,7 +74,7 @@ class BooksFragment : VMBaseFragment(R.layout.fragment_books), rv_bookshelf.layoutManager = LinearLayoutManager(context) booksAdapter = BooksAdapterList(requireContext(), this) } else { - rv_bookshelf.layoutManager = GridLayoutManager(context, bookshelfLayout) + rv_bookshelf.layoutManager = GridLayoutManager(context, bookshelfLayout + 2) booksAdapter = BooksAdapterGrid(requireContext(), this) } rv_bookshelf.adapter = booksAdapter