From 5d9c9e053711297d3cdb0576f4ebaf22943ecbaf Mon Sep 17 00:00:00 2001
From: Horis <821938089@qq.com>
Date: Wed, 2 Aug 2023 12:22:12 +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
---
.../io/legado/app/ui/book/read/ReadBookActivity.kt | 3 +++
app/src/main/res/xml/pref_config_read.xml | 11 +++++++++--
2 files changed, 12 insertions(+), 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 8f822aa48..98242b195 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
@@ -206,6 +206,9 @@ class ReadBookActivity : BaseReadBookActivity(),
autoPageStop()
return@addCallback
}
+ if (getPrefBoolean("disableReturnKey") && !menuLayoutIsVisible) {
+ return@addCallback
+ }
finish()
}
}
diff --git a/app/src/main/res/xml/pref_config_read.xml b/app/src/main/res/xml/pref_config_read.xml
index 8bcca89a8..677aeae73 100644
--- a/app/src/main/res/xml/pref_config_read.xml
+++ b/app/src/main/res/xml/pref_config_read.xml
@@ -149,6 +149,13 @@
app:iconSpaceReserved="false"
app:isBottomBackground="true" />
+
+
+ android:title="@string/show_read_title_addition" />
+ android:title="@string/read_bar_style_follow_page" />
\ No newline at end of file