From 5251f7bcc6e14a5ba130a62cfe3ef8711cec560b Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 25 Aug 2019 12:47:23 +0800 Subject: [PATCH] up --- .../app/ui/readbook/config/ReadAloudDialog.kt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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