From 4082ae52b408133330f414eb797b4fde213b436b Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 29 Aug 2019 11:11:13 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/readbook/ReadBookActivity.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 70abb4271..12205427f 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,11 +90,6 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea Help.upSystemUiVisibility(window, !read_menu.isVisible) } - override fun onDestroy() { - super.onDestroy() - viewModel.saveRead() - } - /** * 初始化View */ @@ -244,6 +239,7 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea viewModel.loadContent(it, viewModel.durChapterIndex) viewModel.loadContent(it, viewModel.durChapterIndex + 1) viewModel.loadContent(it, viewModel.durChapterIndex - 1) + viewModel.saveRead() } }