feat: tipConfig

pull/198/head
kunfei 5 years ago
parent 16ebda0a99
commit 397894dfe6
  1. 10
      app/src/main/java/io/legado/app/ui/book/read/config/PaddingConfigDialog.kt

@ -11,10 +11,7 @@ import io.legado.app.R
import io.legado.app.constant.EventBus
import io.legado.app.help.ReadBookConfig
import io.legado.app.ui.book.read.Help
import io.legado.app.utils.dp
import io.legado.app.utils.gone
import io.legado.app.utils.postEvent
import io.legado.app.utils.visible
import kotlinx.android.synthetic.main.dialog_read_padding.*
class PaddingConfigDialog : DialogFragment() {
@ -54,13 +51,6 @@ class PaddingConfigDialog : DialogFragment() {
}
private fun initData() = ReadBookConfig.apply {
if (hideStatusBar) {
ll_header_padding.visible()
tv_body_padding.setPadding(0, 10.dp, 0, 10.dp)
} else {
ll_header_padding.gone()
tv_body_padding.setPadding(0, 0.dp, 0, 10.dp)
}
//正文
dsb_padding_top.progress = paddingTop
dsb_padding_bottom.progress = paddingBottom

Loading…
Cancel
Save