From 0c577860916b5ef5b448cbc059f2f0fbb2fe5e9a Mon Sep 17 00:00:00 2001 From: HapeLee <1321903405@qq.com> Date: Mon, 10 Nov 2025 18:20:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E7=9C=89=20#263?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/read/page/PageView.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt index ba469cc6d..20d0d57a5 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt @@ -178,11 +178,17 @@ class PageView(context: Context) : FrameLayout(context) { } ReadTipConfig.apply { tvHeaderLeft.isGone = tipHeaderLeft == none - tvHeaderRight.isInvisible = tipHeaderRight == none tvHeaderMiddle.isGone = tipHeaderMiddle == none + if (tvHeaderLeft.isGone && tvHeaderMiddle.isGone) + tvHeaderRight.isGone = tipHeaderRight == none + else + tvHeaderRight.isInvisible = tipHeaderRight == none tvFooterLeft.isGone = tipFooterLeft == none - tvFooterRight.isInvisible = tipFooterRight == none tvFooterMiddle.isGone = tipFooterMiddle == none + if (tvFooterLeft.isGone && tvFooterMiddle.isGone) + tvFooterRight.isGone = tipFooterRight == none + else + tvFooterRight.isInvisible = tipFooterRight == none } tvTitle = getTipView(ReadTipConfig.chapterTitle)?.apply { tag = ReadTipConfig.chapterTitle