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) {