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 { //设置背景防止切换背景时文字重叠