pull/49/head
kunfei 5 years ago
parent 12ba52d18b
commit 0e667d867f
  1. 6
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -16,6 +16,7 @@ import io.legado.app.constant.Bus
import io.legado.app.help.ActivityHelp
import io.legado.app.help.storage.Backup
import io.legado.app.lib.theme.ATH
import io.legado.app.service.help.ReadAloud
import io.legado.app.ui.main.bookshelf.BookshelfFragment
import io.legado.app.ui.main.explore.ExploreFragment
import io.legado.app.ui.main.my.MyFragment
@ -96,6 +97,11 @@ class MainActivity : VMBaseActivity<MainViewModel>(R.layout.activity_main),
}
}
override fun onDestroy() {
super.onDestroy()
ReadAloud.stop(this)
}
override fun observeLiveBus() {
observeEvent<String>(Bus.RECREATE) {
recreate()

Loading…
Cancel
Save