feat: 优化

pull/254/head
gedoor 4 years ago
parent ce5f8bc7b8
commit 7167542db0
  1. 6
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

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

Loading…
Cancel
Save