From 6c8645990af2e19c734ca0cfe5b1fb89a5856648 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 28 Aug 2019 09:50:41 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/readbook/ReadBookActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index 57d9d375d..7aed7c0ca 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -90,6 +90,11 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea Help.upSystemUiVisibility(window, !read_menu.isVisible) } + override fun onDestroy() { + super.onDestroy() + viewModel.saveRead() + } + /** * 初始化View */