pull/32/head
kunfei 5 years ago
parent 7e9b427297
commit db00ea7d85
  1. 10
      app/src/main/java/io/legado/app/ui/readbook/config/ReadStyleDialog.kt

@ -159,31 +159,31 @@ class ReadStyleDialog : DialogFragment() {
ReadBookConfig.styleSelect = 0
ReadBookConfig.upBg()
upBg()
postEvent(Bus.UP_CONFIG, false)
postEvent(Bus.UP_CONFIG, true)
}
tv_bg1.onClick {
ReadBookConfig.styleSelect = 1
ReadBookConfig.upBg()
upBg()
postEvent(Bus.UP_CONFIG, false)
postEvent(Bus.UP_CONFIG, true)
}
tv_bg2.onClick {
ReadBookConfig.styleSelect = 2
ReadBookConfig.upBg()
upBg()
postEvent(Bus.UP_CONFIG, false)
postEvent(Bus.UP_CONFIG, true)
}
tv_bg3.onClick {
ReadBookConfig.styleSelect = 3
ReadBookConfig.upBg()
upBg()
postEvent(Bus.UP_CONFIG, false)
postEvent(Bus.UP_CONFIG, true)
}
tv_bg4.onClick {
ReadBookConfig.styleSelect = 4
ReadBookConfig.upBg()
upBg()
postEvent(Bus.UP_CONFIG, false)
postEvent(Bus.UP_CONFIG, true)
}
}

Loading…
Cancel
Save