From 0e24e62c700f7db179d3e9338e3520e64fb71cc8 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Mon, 10 Oct 2022 15:28:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=A0=E8=8A=82=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=BF=9B=E5=BA=A6=E6=97=A0=E6=B3=95=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/read/ReadBookActivity.kt | 1 + app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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 aa53b8c87..b9f8b42a6 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 @@ -1171,6 +1171,7 @@ class ReadBookActivity : BaseReadBookActivity(), /* 进度条跳转到指定章节 */ override fun skipToChapter(index: Int) { + ReadBook.saveCurrentBookProcess() //退出章节跳转恢复此时进度 viewModel.openChapter(index) } diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt index 96a51445d..0de1c6fb2 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt @@ -375,13 +375,11 @@ class ReadMenu @JvmOverloads constructor( "page" -> ReadBook.skipToPage(seekBar.progress) "chapter" -> { if (confirmSkipToChapter) { - ReadBook.saveCurrentBookProcess() callBack.skipToChapter(seekBar.progress) } else { context.alert("章节跳转确认", "确定要跳转章节吗?") { yesButton { confirmSkipToChapter = true - ReadBook.saveCurrentBookProcess() callBack.skipToChapter(seekBar.progress) } noButton {