feat: 优化代码

pull/112/head
kunfei 5 years ago
parent 573812adf7
commit 18ff21fe1f
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt

@ -155,7 +155,7 @@ class BgTextConfigDialog : DialogFragment() {
override fun registerListener(holder: ItemViewHolder) { override fun registerListener(holder: ItemViewHolder) {
holder.itemView.apply { holder.itemView.apply {
this.onClick { this.onClick {
getItem(holder.layoutPosition)?.let { getItem(holder.layoutPosition - getHeaderCount())?.let {
ReadBookConfig.durConfig.setBg(1, it) ReadBookConfig.durConfig.setBg(1, it)
ReadBookConfig.upBg() ReadBookConfig.upBg()
postEvent(EventBus.UP_CONFIG, false) postEvent(EventBus.UP_CONFIG, false)

Loading…
Cancel
Save