feat: 优化代码

pull/190/head
kunfei 5 years ago
parent 078b6789ee
commit fd951844ff
  1. 6
      app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt

@ -104,10 +104,8 @@ class ReadStyleDialog : DialogFragment(), FontSelectDialog.CallBack {
showTitleConfig()
}
tv_text_bold.onClick {
ReadBookConfig.apply {
textBold = !textBold
tv_text_bold.isSelected = textBold
}
ReadBookConfig.textBold = !ReadBookConfig.textBold
tv_text_bold.isSelected = ReadBookConfig.textBold
postEvent(EventBus.UP_CONFIG, true)
}
tv_text_font.onClick {

Loading…
Cancel
Save