修复分组bug

pull/433/head 3.20.101808
gedoor 4 years ago
parent 86b69908fa
commit a349326ad3
  1. 1
      app/src/main/java/io/legado/app/constant/EventBus.kt
  2. 7
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt

@ -4,7 +4,6 @@ object EventBus {
const val MEDIA_BUTTON = "mediaButton"
const val RECREATE = "RECREATE"
const val UP_BOOK = "upBookToc"
const val UP_BOOK_GROUP = "upBookGroup"
const val ALOUD_STATE = "aloud_state"
const val TTS_PROGRESS = "ttsStart"
const val TTS_DS = "ttsDs"

@ -13,7 +13,6 @@ import io.legado.app.App
import io.legado.app.R
import io.legado.app.base.VMBaseFragment
import io.legado.app.constant.AppConst
import io.legado.app.constant.EventBus
import io.legado.app.constant.PreferKey
import io.legado.app.data.entities.BookGroup
import io.legado.app.lib.dialogs.alert
@ -203,12 +202,6 @@ class BookshelfFragment : VMBaseFragment<BookshelfViewModel>(R.layout.fragment_b
fragmentMap[selectedGroup?.groupId]?.gotoTop()
}
override fun observeLiveBus() {
observeEvent<List<BookGroup>>(EventBus.UP_BOOK_GROUP) {
upGroup(it)
}
}
private inner class TabFragmentPageAdapter(fm: FragmentManager) :
FragmentStatePagerAdapter(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) {

Loading…
Cancel
Save