From 18d3019df8b4ea70b988993d8ae822b7b4c6b1f6 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 8 Sep 2020 16:19:28 +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 --- .../main/java/io/legado/app/ui/book/read/page/ContentView.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt index 3537fade5..66333c901 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt @@ -32,7 +32,9 @@ class ContentView(context: Context) : FrameLayout(context) { private var tvPageAndTotal: BatteryView? = null val headerHeight: Int - get() = if (ReadBookConfig.hideStatusBar) ll_header.height else context.statusBarHeight + get() = if (ReadBookConfig.hideStatusBar) { + if (ll_header.isGone) 0 else ll_header.height + } else context.statusBarHeight init { //设置背景防止切换背景时文字重叠