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.styleSelect = 0
ReadBookConfig.upBg() ReadBookConfig.upBg()
upBg() upBg()
postEvent(Bus.UP_CONFIG, false) postEvent(Bus.UP_CONFIG, true)
} }
tv_bg1.onClick { tv_bg1.onClick {
ReadBookConfig.styleSelect = 1 ReadBookConfig.styleSelect = 1
ReadBookConfig.upBg() ReadBookConfig.upBg()
upBg() upBg()
postEvent(Bus.UP_CONFIG, false) postEvent(Bus.UP_CONFIG, true)
} }
tv_bg2.onClick { tv_bg2.onClick {
ReadBookConfig.styleSelect = 2 ReadBookConfig.styleSelect = 2
ReadBookConfig.upBg() ReadBookConfig.upBg()
upBg() upBg()
postEvent(Bus.UP_CONFIG, false) postEvent(Bus.UP_CONFIG, true)
} }
tv_bg3.onClick { tv_bg3.onClick {
ReadBookConfig.styleSelect = 3 ReadBookConfig.styleSelect = 3
ReadBookConfig.upBg() ReadBookConfig.upBg()
upBg() upBg()
postEvent(Bus.UP_CONFIG, false) postEvent(Bus.UP_CONFIG, true)
} }
tv_bg4.onClick { tv_bg4.onClick {
ReadBookConfig.styleSelect = 4 ReadBookConfig.styleSelect = 4
ReadBookConfig.upBg() ReadBookConfig.upBg()
upBg() upBg()
postEvent(Bus.UP_CONFIG, false) postEvent(Bus.UP_CONFIG, true)
} }
} }

Loading…
Cancel
Save