feat: 优化代码

pull/379/head
kunfei 5 years ago
parent 51457e25cf
commit c99355e504
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt

@ -143,14 +143,17 @@ class ReadStyleDialog : DialogFragment(), FontSelectDialog.CallBack {
}
iv_default1.onClick {
ReadBookConfig.lineSpacingExtra = 16
ReadBookConfig.paragraphSpacing = 6
postEvent(EventBus.UP_CONFIG, true)
}
iv_default2.onClick {
ReadBookConfig.lineSpacingExtra = 13
ReadBookConfig.paragraphSpacing = 3
postEvent(EventBus.UP_CONFIG, true)
}
iv_default3.onClick {
ReadBookConfig.lineSpacingExtra = 10
ReadBookConfig.paragraphSpacing = 0
postEvent(EventBus.UP_CONFIG, true)
}
bg0.onClick { changeBg(0) }

Loading…
Cancel
Save