diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/style2/BookshelfFragment2.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/style2/BookshelfFragment2.kt index 8621c5754..a78178258 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/style2/BookshelfFragment2.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/style2/BookshelfFragment2.kt @@ -112,6 +112,15 @@ class BookshelfFragment2 : BaseBookshelfFragment(R.layout.fragment_bookshelf1), @SuppressLint("NotifyDataSetChanged") private fun initBooksData() { + if (groupId == AppConst.bookGroupNoneId) { + binding.titleBar.title = getString(R.string.bookshelf) + } else { + bookGroups.forEach { + if (groupId == it.groupId) { + binding.titleBar.title = "${getString(R.string.bookshelf)}(${it.groupName})" + } + } + } booksFlowJob?.cancel() booksFlowJob = launch { when (groupId) {