修复文字选择位置不对的bug

pull/436/head
gedoor 4 years ago
parent 3e0d96f032
commit 5f0a55ea61
  1. 8
      app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt

@ -33,9 +33,11 @@ class ContentView(context: Context) : FrameLayout(context) {
private var tvBookName: BatteryView? = null
val headerHeight: Int
get() = if (ReadBookConfig.hideStatusBar) {
if (ll_header.isGone) 0 else ll_header.height
} else context.statusBarHeight
get() {
val h1 = if (ReadBookConfig.hideStatusBar) 0 else context.statusBarHeight
val h2 = if (ll_header.isGone) 0 else ll_header.height
return h1 + h2
}
init {
//设置背景防止切换背景时文字重叠

Loading…
Cancel
Save