From 781c9cea12923259c3b4d37a6edd806d46ffd1e2 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 31 Jul 2021 10:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/updateLog.md | 6 ++++++ .../io/legado/app/ui/book/read/ReadBookActivity.kt | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index d35792467..979072c3a 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -12,6 +12,12 @@ * 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则出现问题, 出现简体变化问题检查一下简繁转换是否关闭。 * 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源! +**2021/07/31** + +1. 为webService添加快捷操作 +2. 规则内替换使用正则错误时自动切换为不使用正则 +3. 优化Cronet + **2021/07/29** 1. 修复每次更新都重新导入text规则的bug 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 6f710af26..23bee2fdd 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 @@ -140,6 +140,10 @@ class ReadBookActivity : ReadBookBaseActivity(), upMenu() upView() } + } + + override fun onPostCreate(savedInstanceState: Bundle?) { + super.onPostCreate(savedInstanceState) viewModel.initData(intent) } @@ -589,7 +593,7 @@ class ReadBookActivity : ReadBookBaseActivity(), resetPageOffset: Boolean, success: (() -> Unit)? ) { - runOnUI { + launch { autoPageProgress = 0 binding.readView.upContent(relativePosition, resetPageOffset) binding.readMenu.setSeekPage(ReadBook.durPageIndex()) @@ -602,13 +606,13 @@ class ReadBookActivity : ReadBookBaseActivity(), * 更新视图 */ override fun upView() { - runOnUI { + launch { binding.readMenu.upBookView() } } override fun upPageAnim() { - runOnUI { + launch { binding.readView.upPageAnim() } } @@ -617,7 +621,7 @@ class ReadBookActivity : ReadBookBaseActivity(), * 页面改变 */ override fun pageChanged() { - runOnUI { + launch { autoPageProgress = 0 binding.readMenu.setSeekPage(ReadBook.durPageIndex()) mHandler.postDelayed(backupRunnable, 600000)