pull/540/head
gedoor 4 years ago
parent cb54d2adcc
commit b915f43ba5
  1. 7
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt

@ -218,12 +218,7 @@ class BookshelfFragment : VMBaseFragment<BookshelfViewModel>(R.layout.fragment_b
override fun getItem(position: Int): Fragment {
val group = bookGroups[position]
var fragment = fragmentMap[group.groupId]
if (fragment == null) {
fragment = BooksFragment.newInstance(position, group.groupId)
fragmentMap[group.groupId] = fragment
}
return fragment
return BooksFragment.newInstance(position, group.groupId)
}
override fun getCount(): Int {

Loading…
Cancel
Save