From 4f25e6d73b0b6937bbb435e1fcabe658654c6523 Mon Sep 17 00:00:00 2001 From: fansan Date: Mon, 29 Jun 2026 02:26:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=B8=89=E6=98=9FSpen=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E4=B8=80=E7=AB=A0=E5=92=8C=E4=B8=8B=E4=B8=80?= =?UTF-8?q?=E7=AB=A0=E7=9A=84=E6=93=8D=E4=BD=9C=E9=80=89=E9=A1=B9=20(#1583?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 45 +++++++++++++++++++ .../app/ui/book/read/ReadBookController.kt | 14 ++++++ app/src/main/res/xml/spen_remote_actions.xml | 19 ++++++++ 3 files changed, 78 insertions(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 26e965165..23e36edff 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -44,7 +44,12 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + { + if (ReadBook.book != null) { + ReadBook.moveToNextChapter(true) + } + return true + } + + KeyEvent.KEYCODE_MEDIA_PREVIOUS -> { + if (ReadBook.book != null) { + ReadBook.moveToPrevChapter(upContent = true, toLast = false) + } + return true + } } return false } diff --git a/app/src/main/res/xml/spen_remote_actions.xml b/app/src/main/res/xml/spen_remote_actions.xml index f38cfebe8..b4c37656c 100644 --- a/app/src/main/res/xml/spen_remote_actions.xml +++ b/app/src/main/res/xml/spen_remote_actions.xml @@ -11,6 +11,7 @@ trigger_key="PAGE_DOWN"> + + + + + + + + + \ No newline at end of file