From 86186b54b5b72847cc60176bf6f62813dd7de8e3 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 19 Feb 2022 11:38:19 +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 --- .../legado/app/ui/book/read/page/PageView.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 ff9cb919a..b37676091 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 @@ -105,6 +105,15 @@ class PageView(context: Context) : FrameLayout(context) { tvFooterLeft.tag = null tvFooterMiddle.tag = null tvFooterRight.tag = null + llHeader.isGone = when (ReadTipConfig.headerMode) { + 1 -> false + 2 -> true + else -> !ReadBookConfig.hideStatusBar + } + llFooter.isGone = when (ReadTipConfig.footerMode) { + 1 -> true + else -> false + } ReadTipConfig.apply { tvHeaderLeft.isGone = tipHeaderLeft == none tvHeaderRight.isGone = tipHeaderRight == none @@ -112,15 +121,6 @@ class PageView(context: Context) : FrameLayout(context) { tvFooterLeft.isInvisible = tipFooterLeft == none tvFooterRight.isGone = tipFooterRight == none tvFooterMiddle.isGone = tipFooterMiddle == none - llHeader.isGone = when (headerMode) { - 1 -> false - 2 -> true - else -> !ReadBookConfig.hideStatusBar - } - llFooter.isGone = when (footerMode) { - 1 -> true - else -> false - } } tvTitle = getTipView(ReadTipConfig.chapterTitle)?.apply { tag = ReadTipConfig.chapterTitle