diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt index c11bb5107..524ff38ea 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt @@ -110,7 +110,9 @@ class BookshelfFragment : VMBaseFragment(R.layout.fragment_b } var noGroupSize = 0 withContext(IO) { - noGroupSize = App.db.bookDao().noGroupSize + if (AppConfig.bookGroupNoneShow) { + noGroupSize = App.db.bookDao().noGroupSize + } } synchronized(this@BookshelfFragment) { bookGroups.clear() @@ -162,7 +164,9 @@ class BookshelfFragment : VMBaseFragment(R.layout.fragment_b launch { var noGroupSize = 0 withContext(IO) { - noGroupSize = App.db.bookDao().noGroupSize + if (AppConfig.bookGroupNoneShow) { + noGroupSize = App.db.bookDao().noGroupSize + } } synchronized(this@BookshelfFragment) { bookGroups.remove(AppConst.bookGroupAll) diff --git a/app/src/main/res/menu/book_group_manage.xml b/app/src/main/res/menu/book_group_manage.xml index 9d3d9241b..8c65f9f8d 100644 --- a/app/src/main/res/menu/book_group_manage.xml +++ b/app/src/main/res/menu/book_group_manage.xml @@ -10,32 +10,36 @@ app:showAsAction="always" tools:ignore="AlwaysShowAction" /> - + - + - + - + + + + + \ No newline at end of file