pull/84/head
kunfei 5 years ago
parent c1cb5fb0d7
commit 6422bd511c
  1. 8
      app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudConfigDialog.kt

@ -93,10 +93,8 @@ class ReadAloudConfigDialog : DialogFragment() {
}
}
PreferKey.readAloudOnLine -> {
if (BaseReadAloudService.isRun) {
ReadAloud.stop(requireContext())
ReadAloud.aloudClass = ReadAloud.getReadAloudClass()
}
ReadAloud.stop(requireContext())
ReadAloud.aloudClass = ReadAloud.getReadAloudClass()
}
PreferKey.ttsSpeechPer -> ReadAloud.upTtsSpeechRate(requireContext())
}
@ -113,7 +111,7 @@ class ReadAloudConfigDialog : DialogFragment() {
// For all other preferences, set the summary to the value's
preference?.summary = stringValue
}
return true
return false
}
private fun bindPreferenceSummaryToValue(preference: Preference?) {

Loading…
Cancel
Save