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() showTitleConfig()
} }
tv_text_bold.onClick { tv_text_bold.onClick {
ReadBookConfig.apply { ReadBookConfig.textBold = !ReadBookConfig.textBold
textBold = !textBold tv_text_bold.isSelected = ReadBookConfig.textBold
tv_text_bold.isSelected = textBold
}
postEvent(EventBus.UP_CONFIG, true) postEvent(EventBus.UP_CONFIG, true)
} }
tv_text_font.onClick { tv_text_font.onClick {

Loading…
Cancel
Save