From 7aaae0ac3efeb02ae21ee4e621ff5d0e6c97acb4 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 2 Dec 2019 16:12:09 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/main/bookshelf/books/BooksFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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