pull/981/head
gedoor 4 years ago
parent 18828dd1db
commit 3c37fd3190
  1. 4
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt
  2. 4
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt

@ -197,6 +197,10 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(),
}
}
override fun containsItem(itemId: Long): Boolean {
return fragmentMap.containsKey(itemId)
}
override fun getItemCount(): Int {
return if (AppConfig.isShowRSS) 4 else 3
}

@ -253,6 +253,10 @@ class BookshelfFragment : VMBaseFragment<BookshelfViewModel>(R.layout.fragment_b
return group.groupId
}
override fun containsItem(itemId: Long): Boolean {
return fragmentMap.containsKey(itemId)
}
override fun getItemCount(): Int {
return bookGroups.size
}

Loading…
Cancel
Save