pull/32/head
kunfei 5 years ago
parent 1cee44e72d
commit 5251f7bcc6
  1. 13
      app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt

@ -9,7 +9,6 @@ import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import io.legado.app.R
import io.legado.app.ui.readbook.Help
import kotlinx.android.synthetic.main.dialog_read_aloud.*
class ReadAloudDialog : DialogFragment() {
@ -21,11 +20,6 @@ class ReadAloudDialog : DialogFragment() {
return inflater.inflate(R.layout.dialog_read_aloud, container)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initData()
}
override fun onStart() {
super.onStart()
val dm = DisplayMetrics()
@ -42,9 +36,14 @@ class ReadAloudDialog : DialogFragment() {
}
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initData()
}
private fun initData() {
seek_tts_SpeechRate.setProgress(0)
}
}
Loading…
Cancel
Save