pull/1238/head^2
gedoor 3 years ago
parent a32abdf792
commit f05450aabc
  1. 9
      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) {

Loading…
Cancel
Save