diff --git a/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt b/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt index dde061329..6a9100096 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt +++ b/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) + } } \ No newline at end of file