From 90c1c5c4cdf1193aaa45e1b8fc88b3b63b70ccdf Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 19 Sep 2019 17:20:38 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/book/read/ReadBookActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index cbf685604..332c846f7 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -22,6 +22,7 @@ import io.legado.app.data.entities.BookChapter import io.legado.app.help.IntentDataHelp import io.legado.app.help.ReadAloud import io.legado.app.help.ReadBookConfig +import io.legado.app.help.storage.Backup import io.legado.app.lib.dialogs.alert import io.legado.app.lib.dialogs.noButton import io.legado.app.lib.dialogs.okButton @@ -521,6 +522,11 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea } ?: super.finish() } + override fun onDestroy() { + super.onDestroy() + Backup.autoBackup() + } + override fun observeLiveBus() { super.observeLiveBus() observeEvent(Bus.ALOUD_STATE) {