From ce31fa265abe831ae53c616c22bcbcb55543c36f Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 29 Aug 2019 09:23:46 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/widget/page/ContentView.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt b/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt index 4202549e1..5a0c3627f 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt @@ -47,12 +47,13 @@ class ContentView : FrameLayout { ReadBookConfig.getConfig().apply { val pt = if (context.getPrefBoolean("hideStatusBar", false)) { top_bar.visible() - paddingTop.dp + 0 } else { top_bar.gone() - paddingTop.dp + context.getStatusBarHeight() + context.getStatusBarHeight() } - page_panel.setPadding(paddingLeft.dp, pt, paddingRight.dp, paddingBottom.dp) + page_panel.setPadding(paddingLeft.dp, pt, paddingRight.dp, 0) + content_text_view.setPadding(0, paddingTop.dp, 0, paddingBottom.dp) content_text_view.textSize = textSize.toFloat() content_text_view.setLineSpacing(lineSpacingExtra.toFloat(), lineSpacingMultiplier) content_text_view.letterSpacing = letterSpacing