feat: 优化代码

pull/120/head
kunfei 5 years ago
parent e0e412e85a
commit d17099ba5c
  1. 5
      app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt

@ -37,8 +37,9 @@ class ContentView(context: Context) : FrameLayout(context) {
tv_bottom_right.typeface = ChapterProvider.typeface tv_bottom_right.typeface = ChapterProvider.typeface
//显示状态栏时隐藏header //显示状态栏时隐藏header
if (hideStatusBar) { if (hideStatusBar) {
ll_header.layoutParams = ll_header.layoutParams = ll_header.layoutParams.apply {
ll_header.layoutParams.apply { height = context.statusBarHeight } height = context.statusBarHeight + headerPaddingTop.dp + headerPaddingBottom.dp
}
ll_header.setPadding( ll_header.setPadding(
headerPaddingLeft.dp, headerPaddingLeft.dp,
headerPaddingTop.dp, headerPaddingTop.dp,

Loading…
Cancel
Save