From f93f080a5ebcd6e0bcdd3d593c7574f47157af57 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 2 Jul 2021 23:29:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=AE=E5=BA=A6=E6=9D=A1?= =?UTF-8?q?=E5=BE=80=E4=B8=AD=E9=97=B4=E7=A7=BB=E4=BA=86=E4=B8=80=E7=82=B9?= =?UTF-8?q?,=E7=82=B9=E5=88=B0=E4=BA=AE=E5=BA=A6=E6=9D=A1=E8=83=8C?= =?UTF-8?q?=E6=99=AF,=E4=BA=AE=E5=BA=A6=E6=9D=A1=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E6=B6=88=E5=A4=B1,=E9=98=B2=E8=AF=AF=E8=A7=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt | 5 +++-- app/src/main/res/layout/view_read_menu.xml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) 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 60a90b56e..a4e62fbce 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 @@ -82,8 +82,9 @@ class ReadMenu @JvmOverloads constructor( tvFont.setTextColor(textColor) ivSetting.setColorFilter(textColor) tvSetting.setTextColor(textColor) - vwBg.setOnClickListener { } - vwNavigationBar.setOnClickListener { } + vwBg.setOnClickListener(null) + vwNavigationBar.setOnClickListener(null) + llBrightness.setOnClickListener(null) seekBrightness.progress = context.getPrefInt("brightness", 100) } diff --git a/app/src/main/res/layout/view_read_menu.xml b/app/src/main/res/layout/view_read_menu.xml index 1a62637cf..2dd08be5b 100644 --- a/app/src/main/res/layout/view_read_menu.xml +++ b/app/src/main/res/layout/view_read_menu.xml @@ -71,9 +71,10 @@ android:id="@+id/ll_brightness" android:layout_width="wrap_content" android:layout_height="0dp" - android:layout_margin="8dp" + android:layout_margin="16dp" android:gravity="center_horizontal" android:orientation="vertical" + android:padding="6dp" app:layout_constraintBottom_toTopOf="@+id/bottom_menu" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/title_bar">