pull/32/head
kunfei 5 years ago
parent 9ab42d512b
commit d37280a30c
  1. 16
      app/src/main/java/io/legado/app/ui/readbook/config/PaddingConfigDialog.kt
  2. 6
      app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt
  3. 6
      app/src/main/java/io/legado/app/ui/readbook/config/ReadStyleDialog.kt

@ -116,9 +116,7 @@ class PaddingConfigDialog : DialogFragment() {
tv_padding_top.text = paddingTop.toString()
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {
}
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) {
postEvent(Bus.UP_CONFIG, true)
@ -130,9 +128,7 @@ class PaddingConfigDialog : DialogFragment() {
tv_padding_bottom.text = paddingBottom.toString()
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {
}
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) {
postEvent(Bus.UP_CONFIG, true)
@ -144,9 +140,7 @@ class PaddingConfigDialog : DialogFragment() {
tv_padding_left.text = paddingLeft.toString()
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {
}
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) {
postEvent(Bus.UP_CONFIG, true)
@ -158,9 +152,7 @@ class PaddingConfigDialog : DialogFragment() {
tv_padding_right.text = paddingRight.toString()
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {
}
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) {
postEvent(Bus.UP_CONFIG, true)

@ -87,8 +87,7 @@ class ReadAloudDialog : DialogFragment() {
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {
}
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) {
requireContext().putPrefInt("ttsSpeechRate", seek_tts_SpeechRate.progress)
@ -101,8 +100,7 @@ class ReadAloudDialog : DialogFragment() {
tv_timer.text = requireContext().getString(R.string.timer_m, progress)
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {
}
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) {
ReadAloudService.setTimer(requireContext(), seek_timer.progress)

@ -119,7 +119,7 @@ class ReadStyleDialog : DialogFragment() {
tv_text_size.text = ReadBookConfig.getConfig().textSize.toString()
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {}
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) {
postEvent(Bus.UP_CONFIG, true)
}
@ -151,7 +151,7 @@ class ReadStyleDialog : DialogFragment() {
}
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {}
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) {
postEvent(Bus.UP_CONFIG, true)
}
@ -181,7 +181,7 @@ class ReadStyleDialog : DialogFragment() {
}
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {}
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) {
postEvent(Bus.UP_CONFIG, true)
}

Loading…
Cancel
Save