|
|
@ -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) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|