|
|
@ -45,12 +45,20 @@ class TipConfigDialog : BaseDialogFragment(R.layout.dialog_tip_config) { |
|
|
|
tvHeaderShow.text = ReadTipConfig.getHeaderModes(requireContext())[ReadTipConfig.headerMode] |
|
|
|
tvHeaderShow.text = ReadTipConfig.getHeaderModes(requireContext())[ReadTipConfig.headerMode] |
|
|
|
tvFooterShow.text = ReadTipConfig.getFooterModes(requireContext())[ReadTipConfig.footerMode] |
|
|
|
tvFooterShow.text = ReadTipConfig.getFooterModes(requireContext())[ReadTipConfig.footerMode] |
|
|
|
|
|
|
|
|
|
|
|
tvHeaderLeft.text = ReadTipConfig.tipHeaderLeftStr |
|
|
|
ReadTipConfig.tips.let { tips -> |
|
|
|
tvHeaderMiddle.text = ReadTipConfig.tipHeaderMiddleStr |
|
|
|
tvHeaderLeft.text = |
|
|
|
tvHeaderRight.text = ReadTipConfig.tipHeaderRightStr |
|
|
|
tips.getOrElse(ReadTipConfig.tipHeaderLeft) { tips[ReadTipConfig.none] } |
|
|
|
tvFooterLeft.text = ReadTipConfig.tipFooterLeftStr |
|
|
|
tvHeaderMiddle.text = |
|
|
|
tvFooterMiddle.text = ReadTipConfig.tipFooterMiddleStr |
|
|
|
tips.getOrElse(ReadTipConfig.tipHeaderMiddle) { tips[ReadTipConfig.none] } |
|
|
|
tvFooterRight.text = ReadTipConfig.tipFooterRightStr |
|
|
|
tvHeaderRight.text = |
|
|
|
|
|
|
|
tips.getOrElse(ReadTipConfig.tipHeaderRight) { tips[ReadTipConfig.none] } |
|
|
|
|
|
|
|
tvFooterLeft.text = |
|
|
|
|
|
|
|
tips.getOrElse(ReadTipConfig.tipFooterLeft) { tips[ReadTipConfig.none] } |
|
|
|
|
|
|
|
tvFooterMiddle.text = |
|
|
|
|
|
|
|
tips.getOrElse(ReadTipConfig.tipFooterMiddle) { tips[ReadTipConfig.none] } |
|
|
|
|
|
|
|
tvFooterRight.text = |
|
|
|
|
|
|
|
tips.getOrElse(ReadTipConfig.tipFooterRight) { tips[ReadTipConfig.none] } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
upTvTipColor() |
|
|
|
upTvTipColor() |
|
|
|
} |
|
|
|
} |
|
|
|