|
|
@ -52,8 +52,8 @@ class TipConfigDialog : BaseDialogFragment() { |
|
|
|
dsbTitleTop.progress = ReadBookConfig.titleTopSpacing |
|
|
|
dsbTitleTop.progress = ReadBookConfig.titleTopSpacing |
|
|
|
dsbTitleBottom.progress = ReadBookConfig.titleBottomSpacing |
|
|
|
dsbTitleBottom.progress = ReadBookConfig.titleBottomSpacing |
|
|
|
|
|
|
|
|
|
|
|
tvHeaderShow.text = ReadTipConfig.headerModes[ReadTipConfig.headerMode] |
|
|
|
tvHeaderShow.text = ReadTipConfig.getHeaderModes(requireContext())[ReadTipConfig.headerMode] |
|
|
|
tvFooterShow.text = ReadTipConfig.footerModes[ReadTipConfig.footerMode] |
|
|
|
tvFooterShow.text = ReadTipConfig.getFooterModes(requireContext())[ReadTipConfig.footerMode] |
|
|
|
|
|
|
|
|
|
|
|
tvHeaderLeft.text = ReadTipConfig.tipHeaderLeftStr |
|
|
|
tvHeaderLeft.text = ReadTipConfig.tipHeaderLeftStr |
|
|
|
tvHeaderMiddle.text = ReadTipConfig.tipHeaderMiddleStr |
|
|
|
tvHeaderMiddle.text = ReadTipConfig.tipHeaderMiddleStr |
|
|
@ -92,16 +92,18 @@ class TipConfigDialog : BaseDialogFragment() { |
|
|
|
postEvent(EventBus.UP_CONFIG, true) |
|
|
|
postEvent(EventBus.UP_CONFIG, true) |
|
|
|
} |
|
|
|
} |
|
|
|
llHeaderShow.setOnClickListener { |
|
|
|
llHeaderShow.setOnClickListener { |
|
|
|
selector(items = ReadTipConfig.headerModes.values.toList()) { _, i -> |
|
|
|
val headerModes = ReadTipConfig.getHeaderModes(requireContext()) |
|
|
|
ReadTipConfig.headerMode = ReadTipConfig.headerModes.keys.toList()[i] |
|
|
|
selector(items = headerModes.values.toList()) { _, i -> |
|
|
|
tvHeaderShow.text = ReadTipConfig.headerModes[ReadTipConfig.headerMode] |
|
|
|
ReadTipConfig.headerMode = headerModes.keys.toList()[i] |
|
|
|
|
|
|
|
tvHeaderShow.text = headerModes[ReadTipConfig.headerMode] |
|
|
|
postEvent(EventBus.UP_CONFIG, true) |
|
|
|
postEvent(EventBus.UP_CONFIG, true) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
llFooterShow.setOnClickListener { |
|
|
|
llFooterShow.setOnClickListener { |
|
|
|
selector(items = ReadTipConfig.footerModes.values.toList()) { _, i -> |
|
|
|
val footerModes = ReadTipConfig.getFooterModes(requireContext()) |
|
|
|
ReadTipConfig.footerMode = ReadTipConfig.footerModes.keys.toList()[i] |
|
|
|
selector(items = footerModes.values.toList()) { _, i -> |
|
|
|
tvFooterShow.text = ReadTipConfig.footerModes[ReadTipConfig.footerMode] |
|
|
|
ReadTipConfig.footerMode = footerModes.keys.toList()[i] |
|
|
|
|
|
|
|
tvFooterShow.text = footerModes[ReadTipConfig.footerMode] |
|
|
|
postEvent(EventBus.UP_CONFIG, true) |
|
|
|
postEvent(EventBus.UP_CONFIG, true) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|