pull/32/head
kunfei 5 years ago
parent 6fd47432cf
commit d7b85b6636
  1. 6
      app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt
  2. 2
      app/src/main/res/layout/dialog_read_aloud.xml

@ -13,10 +13,7 @@ import io.legado.app.constant.Status
import io.legado.app.service.ReadAloudService
import io.legado.app.ui.readbook.Help
import io.legado.app.ui.readbook.ReadBookActivity
import io.legado.app.utils.getPrefBoolean
import io.legado.app.utils.observeEvent
import io.legado.app.utils.postEvent
import io.legado.app.utils.putPrefBoolean
import io.legado.app.utils.*
import kotlinx.android.synthetic.main.activity_read_book.*
import kotlinx.android.synthetic.main.dialog_read_aloud.*
import org.jetbrains.anko.sdk27.listeners.onClick
@ -63,6 +60,7 @@ class ReadAloudDialog : DialogFragment() {
cb_by_page.isChecked = requireContext().getPrefBoolean("readAloudByPage")
cb_tts_follow_sys.isChecked = requireContext().getPrefBoolean("ttsFollowSys", true)
seek_tts_SpeechRate.isEnabled = !cb_tts_follow_sys.isChecked
seek_tts_SpeechRate.progress = requireContext().getPrefInt("ttsSpeechRate", 10)
}
private fun initOnChange() {

@ -161,7 +161,7 @@
android:layout_height="30dp"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:max="20" />
android:max="50" />
</LinearLayout>

Loading…
Cancel
Save