From 0e667d867fb6b1d4ec2647ab21d95480a4ec3cb0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 30 Nov 2019 12:13:59 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt index e70896f09..022aa2b53 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt +++ b/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(R.layout.activity_main), } } + override fun onDestroy() { + super.onDestroy() + ReadAloud.stop(this) + } + override fun observeLiveBus() { observeEvent(Bus.RECREATE) { recreate()